Forum Widgets
Latest Discussions
"User content migrated" Error when Creating OneDrive Webhook Subscription
Dear Microsoft Community, Our application is encountering an undocumented error when attempting to set up a Webhook Subscription to a OneDrive app-root folder (/drive/special/approot). This issue began approximately one day after deployment, following an initial period where the subscription process worked correctly, and has now persisted for several weeks. Here's the full error message: { "error": { "code": "ExtensionError", "message": "Operation: Create; Exception: [Status Code: ServiceUnavailable; Reason: User content migrated. Cannot access disabled item.]", "innerError": { "date": "2025-06-10T10:58:15", "request-id": "edff6dc0-45b7-4e7c-8797-3134ebc6bae4", "client-request-id": "edff6dc0-45b7-4e7c-8797-3134ebc6bae4" } } } Could this error be related to: - The absence of an MPN ID? - The type of Microsoft account used for app registration (personal vs. work account)? Any insights or suggestions would be greatly appreciated!manschgiJun 10, 2025Copper Contributor27Views0likes0CommentsMicrosoft Graph API: Outlook Contact NOT Permanently Deleted with PermanentDelete.PostAsync()
I'm encountering an issue when attempting to permanently delete an Outlook contact using the Microsoft Graph API. The contact was previously inserted without any problems via the API, and I also assigned a profile picture to it, uploaded via the API. Contact? contactAdded = await _graphClient.Users["{user-id}"] .ContactFolders["{folder-id}"] .Contacts.PostAsync(contactToBeAdd, cancellationToken: cancelToken); I'm using the PermanentDelete endpoint as described in the Microsoft Graph documentation: API LINK My C# code looks like this: await graphClient.Users["{user-id}"].ContactFolders["{folder-id}"].Contacts["{contact-id}"].PermanentDelete.PostAsync(); The code executes successfully without throwing any exceptions. However, when I check the Outlook application (desktop or web), the contact still exists. It appears that almost all of the contact's information has been deleted, but the contact itself remains visible and still appears in searches. Has anyone else experienced this issue and can suggest a solution or an alternative approach to permanently delete Outlook contacts using the Graph API? Thanks in advance for any help.chris_juMay 27, 2025Copper Contributor42Views0likes0CommentsHow to add Metadata to Groups
Hello, I am getting quite frustrated with any kind of metadata in Entra ID especially on groups. I used to put a lot of information like product , responsible , location etc. in either the name or the description of a group but since this information is most of the time confusing and irrelevant for the members of the group, I wanted to come up with something better. Now it seems that for some reason Microsoft denies any kind of metadata in Entra ID to be added to most objects especially groups. Overall it seem Microsoft does not see value in providing tags similar to the ones in Azure to any object type in Entra ID and I wonder why is that? I checked out the new "Custom Security Attributes" feature, turns out, its only available for users and applications.... Then I thought we are using directory extensions on applications and users already, it would be useful to use on groups as well. Now according to the documentation groups are also supported, great. But then there is the limitation that you can not update mail enabled and distribution groups via Graph API 😡. Well majority of groups are mail enabled.... Now I am forced to use the EXO module which limits the possibility of automating this quite much (requires PowerShell) but even with this you can not set directory extensions. Why is this so bad by design? How can I add metadata to groups now? CheersmagichappenzMay 26, 2025Copper Contributor15Views0likes0CommentsFailed to get the data for the MS Graph API with status code 206 while using v1
I am getting intermittently response with status code 206. I am using v1 graph api. Mostly observed while fetching alerts for Office 365 Security and Compliance vendor. We are fetching alerts 5 minutes interval. sample url -> https://graph.microsoft.com/v1.0/security/alerts?$filter=vendorInformation/provider eq 'Office 365 Security and Compliance' and createdDateTime ge 2025-05-17T09:00:00.000Z and createdDateTime lt 2025-05-17T09:10:00.000Z Is there any way to handle this?esanya2280May 19, 2025Copper Contributor21Views0likes0CommentsGraph API upload session creation fails
Graph API upload session creation fails if the "check out required" is set to no and you try to replace the same file with same name. Replace conflict behavior doesn't work while creating the session. Only if you check out the file first it works. The question is if "check out required" is set to false, why do we need to check out the file and then create a session for replacing the file with same name?SurajRautDevMay 16, 2025Copper Contributor17Views0likes0CommentsUnexpected 429 Errors from SharePoint /list and /content APIs – Not Near Documented Limits
Hi everyone, I'm currently working with the Microsoft Graph /list API to retrieve files from a SharePoint document library and then using the /content endpoint to download each file. After processing approximately 1000 records, I began receiving 429 Too Many Requests errors. On reviewing the API traffic from my application, I found that we're only making about 150 API calls per minute, which is well below the documented thresholds. According to Microsoft’s guidance on avoiding throttling in SharePoint Online (link to docs), the usage is nowhere near the stated API or egress limits — especially the tenant-level thresholds like 1,200 API calls/min or 100GB/hour egress. What’s puzzling is the lack of transparency — I’m unable to find any dashboards, logs, or reports in Microsoft 365 or Entra that show how many API requests are being made or what limits are being approached. My questions: Are there any hidden or undocumented limits (e.g., per-user, per-app, or per-site collection)? Could /content downloads have higher cost per call or impact the limit differently? Is there any way to monitor detailed API usage against SharePoint or Graph API from the Microsoft portal? Would appreciate any guidance or insights from others who’ve faced similar issues! Thanks in advance!Santosh_HegdeMay 15, 2025Copper Contributor18Views0likes0CommentsGet install apps on devices without having to query each app?
Is there a way to query installed apps on all devices rather than having to query each app to list which devices has it installed? I am able to get his working: https://graph.microsoft.com/v1.0/deviceManagement/detectedApps/<app_id>/managedDevices?$select=id,deviceName But we have 4K plus apps so I need to do 4K API calls which is slow although I could live with that, but I get "TooManyRequests" errorsTorWCMay 01, 2025Copper Contributor80Views1like3CommentsConnect REST.value table with REST.start, REST.end, REST.location and REST.attendees table.
I successfully retrieved calendar data in our Timextender environment using the following Microsoft Graph API call: https://graph.microsoft.com/v1.0/users/{Id}/calendar/calendarView?startDateTime={StartDateTime}&endDateTime={EndDateTime}&$top=1000. While I can access the necessary information, it is returned in separate tables, and I am unable to locate any ID or Key columns to establish connections between these tables. Could you kindly advise how I might combine the data into a single dataset? Specifically, I would like to consolidate details such as the start time, end time, locations, and attendees of each event.miesbMay 01, 2025Copper Contributor15Views0likes0CommentsMicrosoft Graph Security API response does not have all info.
GET securityalertsalertsId http request was successfully made and received. The alert was a DLP alert and it contained the file path and file name associated with it in the actual defender tool. However, the http request did not return that information back despite it having a return parameter of filestates.patelvinit04Apr 29, 2025Copper Contributor29Views0likes1CommentonBehalfOfUserMri cannot be null or empty - Team installedApps
Hi, Posting this in the Graph community as I suspect the issue is Graph related since I can reproduce this via PowerShell script as well. Anyone else with this issue? Reading up on the documentation then there is nothing on the "onBehalfOfUserMri" Background: I have an flow that is via an HTTP Request call installing an App on a Team. This via an Service Principal in Azure using Client Id and Client Secret. Reference to the Graph API call can be found here. The flow has been running for years without any issues until yesterday. Error: Graph Error Message: onBehalfOfUserMri cannot be null or empty. (Parameter 'onBehalfOfUserMri') Details: I have been able to reproduce this issue in PowerShell as well: Write-Error: Graph Error Message: onBehalfOfUserMri cannot be null or empty. (Parameter 'onBehalfOfUserMri') Write-Error: Graph Inner Error: { "code": "InvalidRequest", "message": "onBehalfOfUserMri cannot be null or empty. (Parameter 'onBehalfOfUserMri')", "details": [], "date": "2025-04-24T15:02:02", "request-id": "4b71b933-...-...-...-094bfa5b78f4", "client-request-id": "4b71b933-...-...-...-094bfa5b78f4" }EPNAdamApr 24, 2025Iron Contributor137Views0likes3Comments
Resources
Tags
- api228 Topics
- Office Graph159 Topics
- developer118 Topics
- office 36594 Topics
- Graph API29 Topics
- App26 Topics
- Microsoft Graph Api20 Topics
- Microsoft Graph14 Topics
- graph12 Topics
- Delve9 Topics