ConvertFrom-SecureString
Hi All, I have created an Azure App Registration and would like to use it in my script. I have saved the client secret in a text file located at C:\temp\key.txt, and I encrypted the secret using the following command. $keyfile = 'C:\temp\key.txt'…
Exchange Web Services (EWS)
Hi All, I am using an Exchange 2016 hybrid environment. All my users have been migrated from on-prem to online. I have a requirement to forward meeting invites from a shared mailbox to users, and my input file changes daily. I need to schedule this…
Will MgDeviceRegisteredOwnerByRef commands be getting app permissions?
Trying to create an automation to change the owner of devices enrolled in our EntraID tenant, but app permission isn't supported why MgDeviceRegisteredOwnerByRef commands other than delegated work/school accounts. Will app permissions ever be supported?
When patching rows in a site's file, if a column is being filled with an Excel formula, the value of such column for the last row will be applied to all the others
I'm trying to patch some rows in a range in an Excel file contained in a Sharepoint site. This is the URL: PATCH https://graph.microsoft.com/v1.0/sites/{site id}/drive/items/{workbook id}/workbook/worksheets/{worksheet…
error 400 graph API closesession in excel
Please help with error 400 I am having when I am trying to close session for Excel file https://graph.microsoft.com/v1.0/Drives/driveiid/Items/Itemid/Workbook/closeSession Headers: Bearer token workbook-session-id Body {}
Changing primary user of a device in Intune
Hello All, I ran into issues where our Technicians who reimage and deploy laptop/workstations to our users gets assigned as Primary user on the device. Right now, We have about less than 1000 devices that doesn't have the proper Primary user in Intune.…
Intune managedDevice
Hey, I'm interested in retrieving IPv6 via Intune graph API. we saw this API - https://video2.skills-academy.com/en-us/graph/api/intune-devices-manageddevice-get?view=graph-rest-beta we saw that we could retrieve ipv4 using this API. Is there another API that…
WebGraphQlInterceptor is not invoked from Azure Spring Cloud Function App
I am using an Azure Spring Cloud Function app with WebFlux and GraphQL. I understand that request headers are not passed directly to the GraphQLContext. Instead, I need to intercept the request, extract the request headers, and set them into the…
Get 401 unauthorized when uploading bytes to the upload session
Hi I am using graph sdk 5.80.0 with Android phone. I always encounter an exception saying "com.microsoft.graph.core.ClientException: Error while executing the request" when I upload bytes of a file to my Onedrive after an upload session is…
Is there a Graph API endpoint for assigning a group to a Windows 10 Enrollment Completion Page Configuration?
Using the Invoke-MgGraphRequest command with the URI "/beta/deviceManagement/deviceEnrollmentConfigurations/{windows10EnrollmentCompletionPageConfigurationId}/assignments" and the GET method successfully retrieves assignments for the Enrollment…
Getting "00000003-0000-0000-c000-000000000000" Audience in Access token which was expected to be "https://graph.microsoft.com"
I am encountering an issue while trying to acquire an access token using the SharePoint Online API. The expected audience for the token is 'https://graph.microsoft.com', but I am receiving token '00000003-0000-0000-c000-000000000000' instead. Request…
Graph API - Subscription - Planner - Not receiving notifications
I am trying to subscribe to Microsoft Planner events using the Graph API and it doesn't sent notifications. I POST to the following URL: https://graph.microsoft.com/beta/subscriptions I include the following in the body: (the expiration date is in the…
Access Denied When Updating User Password in Azure Active Directory via Microsoft Graph API
I'm trying to update a user's password in Azure Active Directory using the Microsoft Graph API. The user was created using the API endpoint https://graph.microsoft.com/v1.0/users, and I'm generating an application token in Node.js using the…
Unable to call Microsoft Graph API with Auth0
Hi I'm following this document by Auth0 https://auth0.com/docs/authenticate/identity-providers/enterprise-identity-providers/azure-active-directory/v2 to establish a connection between Auth0 and Microsoft Azure Directory. From our understanding, we…
How can I download files from a public SharePoint URL using Graph APIs in Python?
I received a requirement where I get a Microsoft SharePoint public URL, and I need to download the files and store them using Graph APIs
Failure while trying to download an image from a teams message using Microsoft teams graph API connector in Logic Apps
I am trying to download an image from a teams message using the Send a Microsoft Graph HTTP request action in Microsoft Teams connector in Logic Apps. From a URl of type…
Creating a Calendar with Microsoft Graph times out
When I try to create a Calendar with Microsoft Graph (using the examples for PHP), I get a idle timout reached for \"https:\/\/graph.microsoft.com\/v1.0\/me\/calendars\ The same problem appears with the endpoint /users/{userId}/calendars. Getting…
How to expand singleValueExtendedProperties on messages delta query?
I'm trying to expand singleValueExtendedProperties on a messages delta query without success. I'm getting the following error message: "Parsing OData Select and Expand failed: Value cannot be null. (Parameter 'initialState')" Here is my code…
How to set scope after connecting to Microsoft Graph using non-interactive method?
I've successfully connected to Microsoft Graph using non-interactive method (Client Id, Client Secret), but I'm receiving Insufficient privileges error when running Get-Mguser due to not setting the scope. I have tried running the commands mentioned in…
The 'description' property caused OneDrive Graph API calls to fail when using accounts created before 2019/11.
Following "https://video2.skills-academy.com/en-us/onedrive/developer/rest-api/api/driveitem_createuploadsession?view=odsp-graph-online" to call OneDrive graph api. Account "A" was created before 2019/11, Account "B" was created…