What is the UserID required by Get-MgUserContact?
According to the documentation, Get-MgUserContact requires either a UPN or a UserId in the -UserId field. However, mail contacts don't have UPNs, and the documentation doesn't define what a mail contact's UserID is. I've tried email address, display…
How to join localdevice on Entra ID programatically
Hi , I want to join my local device to Entra ID using c#. I have gone through the Microsoft Graph API documentation as well but didn't get any information related to this topic please help me.
![](https://techprofile.blob.core.windows.net/images/Wgi053x8REabYQY3QRDrpA.png?8D9B4B)
Something went wrong MDI instance cannot be created
How can I fix the below issue? The MDI instance on my existing tenant was not completed before by my predecessor, hence I deleted the three builtin groups, however, I am still stuck at the above issue, despite the gMSA has been created and the agent…
![](https://techprofile.blob.core.windows.net/images/WsWYoGdWukeBW66msAr6qQ.png?8D8128)
![](https://techprofile.blob.core.windows.net/images/WsWYoGdWukeBW66msAr6qQ.png?8D8128)
New-MgSubscription fails when using a PowerShell based function app.
When you send a request to create a subscription to get change notifications through webhooks, the subscription service checks if the notificationUrl property in your subscription request is valid. My notificationUrl is a PowerShell based function app…
Need help in migrating Apps from ADAL to MSAL
Hi Team, Could you please me to check how an app is using ADAL from "app registration" form level? I was able to get list of apps using ADAL from Admin center. When I compared the app using ADAL along with a new app I just created, I couldn't…
I need help renewing my icrosoft 365 developer programe expired subscription
I have recently joined the developer programme, and in the the middle of developing an interactive platform for word, and also looking at improving the team chat. My laptop was stolen and password hacked, I struggled with retrieving my log in details…
User Authentication with Graph API
This will be a fairly lengthy set of questions so thanks in advance! I currently have an app registered where a user can follow this link: https://login.microsoftonline.com/{tenant_id}/adminconsent?client_id={client_id} and they are prompted to grant…
Script to request and get access token from Azure Microsoft graph API
I'm using the following script to get inactive sign in from azure: $AppClientId="" $Secret = "" $uri = "https://login.microsoft.com/a1a5384f-f0fc-4df9-9f37-caf775af43c1/oauth2/token" $body = @{ grant_type =…
Efficient Reporting for 60,000 Intune Devices: Graph API Solutions ?
Hello, We're working on generating reports about devices enrolled in Intune using the Graph API. Our challenge is that to get detailed data (like compliance policies or installed applications), it seems we need to make separate requests for each device.…
Create roleAssignmentScheduleRequests fail with RoleNotFound error.
If we create role definition using HTTP API (same also if using MS Graph Python SDK; client credential OAUTH auth): https://graph.microsoft.com/v1.0/roleManagement/directory/roleDefinitions { "description": "Role description", …
500 error response when updating calendar event via graph API
On behalf of one specific customer, we've suddenly started getting a 500 response when attempting to make PATCH requests to the /v1.0/me/calendars/{calendar_id}/events/{event_id} endpoint in order to update certain calendar events. The error response…
Pulling Sensitivity Labels by Columns names in OneDrive/SharePoint
Hi there, we're hoping to collect sensitivity label names without the use of the extractSensitivityLabels API as it wouldn't be feasible on large environments. As an alternative, we're attempting the following: …
Entra ID App Publication for MS Graph API Integration
At Miro, we want to fetch sensitivity labels using MS Graph APIs in our backend system. To achieve this, we require an application in Microsoft Entra ID. This application will enable customers to connect via the OAuth 2.0 flow, allowing Miro’s backend to…
Accessing Outlook Calendar Graph API from background service
I'm working on a webapp (SPA and backend) that must constantly access the user's Outlook calendar. The users may come from multiple directories and personal accounts. The app will work 24/7, running the background service and modifying the user's…
![](https://techprofile.blob.core.windows.net/images/pBV9r8HlP0ejtt8UsdEh6Q.png?8D93F6)
Error "App is blocked by app permission policy"
I am developing a proactive messaging Teams bot and need to install the app into a single tenant with Graph to store the conversation reference that is supposedly returned for future notifications to an individual user. The error I get: …
![](https://techprofile.blob.core.windows.net/images/pBV9r8HlP0ejtt8UsdEh6Q.png?8D93F6)
Change tracking not supported on Azure US Government for Administrative Unit
Hellow Microsoft teams, I am trying to use the delta query to track changes on Administrative Unit objects in Microsoft Graph dataAzure US Government environment. However, I received an error stating that change tracking is not supported in this…
POST https://graph.microsoft.com/v1.0/subscriptions resulted in a 400 Bad Request
Below is my code for subscribing notifications from outlook calendar webhooks. The code is not responding with validation token for the client side as unable to complete the POST subscribe request. Please help. $client = new \GuzzleHttp\Client(); …
How to export all posts in a Teams channel?
I want to export all posts done in a Teams channel. Please provide the format of a query string.
![](https://techprofile.blob.core.windows.net/images/pBV9r8HlP0ejtt8UsdEh6Q.png?8D93F6)
Programmatically create inbound webhook to Teams Channel?
I want my application to be able to post messages/notifications into external Teams channels. So far I've only found the manual way to do this- making the user generate an incoming webhook URL through their personal Teams app. They would then have to…
Graph API Drive Search does only show my own files
Hello, I am using REST API to search for Excel files that are visible to me. Basically I want to replicate the results that I get on the OneDrive UI if I search with the "All files" filter ( see screenshot) My problem is that the endpoint…