13,889 questions with Microsoft Security | Microsoft Graph tags
Graph API '/me/drive/sharedWithMe' endpoint returns just one item.
Hi, I am experiencing an issue with the me/drive/sharedWithMe API endpoint. I have multiple files and folders that are shared with me in OneDrive and are visible in web interface, but when I try to access these shared items via the API, I only see a…
Microsoft Security | Microsoft Graph
Graph API /me/drive/sharedWithMe regression: returns 1 item via ROPC; UI/Graph Explorer show 6 (worked until ~2 weeks ago)
Using an App Registration with delegated ROPC (username+password) for a service account, GET [https://graph.microsoft.com/v1.0/me/drive/sharedWithMe] returns a single item (200 OK). The same user signed in via OneDrive web UI and Graph Explorer sees…
Microsoft Security | Microsoft Graph
/invite endpoint "notAllowed" but /createLink ok in Sharepoint via Graph API
Hi, I don't understand why I can create a sharing link via the POST /sites/{siteId}/drive/items/{itemId}/createLink endpoint but when I try to use the POST /sites/{siteId}/drive/items/{itemId}/invite endpoint I receive a 403 with this body: { …
Microsoft Security | Microsoft Graph
Why are files and folders shared with me in OneDrive not showing up using the me/drive/sharedWithMe API?
Hi, I have multiple files and folders that are shared with me in OneDrive. However, when I try to access these shared items via the me/drive/sharedWithMe API, I only seem to see a single item. These were items that had previously been accessible through…
Microsoft Security | Microsoft Graph
Unable to list tabs on a cross-tenant Teams meeting chat via Graph API (Skype-backed thread)
Hi, We are building a multi-tenant MS Teams app. When the app home page loads, we fetch and display user's meetings, but list tabs Graph API call fails for the meetings that were created by a user external to user's tenant. Example: User of our MS…
Microsoft Security | Microsoft Graph
Using the request-id to find out what happened.
Hello, I am wondering what the request-id field is, and if I could use that to further understand what happens when an error occurs. The example below is a happy case, where there's an exception Code that's explicit, but there are times when the…
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft Security | Microsoft Graph
Get specific Loop file version exported and converted in html format
Hi, I'm using this API https://graph.microsoft.com/v1.0/sites/{site_id}/drive/items/{item_id}/content?format=html to extract a Loop file in HTML format and it works I would like to use also the version API …
Microsoft Security | Microsoft Graph
Update-MgUser : Insufficient privileges to complete the operation.
I am working on a script that will pull all company manages devices in Intune. Then take the userPrincipalName assigned to that device and update there Entra ID profile Mobile Phone number with the Intune Device Phone number. I've created an app…
Microsoft Security | Intune | Other
Microsoft Security | Microsoft Graph
Password reset via Graph API succeeds but does not sync to hybrid AD devices
Hello, We are performing password resets using Microsoft Graph API in a hybrid AD environment (Azure AD + on-premises AD). API Details: PATCH https://graph.microsoft.com/v1.0/users/{userPrincipalName} Request body: { "passwordProfile":…
Microsoft Security | Microsoft Graph
Clarification on App-only Access to Subject and Location Fields in Calendar Events
Hello Microsoft Graph Team, I’m working on integrating calendar data using Microsoft Graph and would like clarification regarding the visibility of event subject and location when using application (app-only) permissions. Specifically, under what…
Microsoft Security | Microsoft Graph
App originally created at https://apps.dev.microsoft.com/ is not showing in Azure portal App Registrations page
Hi, We have a similar issue as this one: https://learn.microsoft.com/en-us/answers/questions/1340052/app-originally-created-at-https-apps-dev-microsoft We previously create apps using apps.dev.microsoft and they are no longer accessible since the…
Microsoft Security | Microsoft Graph
File Services workload is not enabled for rich notifications for application error when creating Microsoft Graph subscription
I'm trying to create a Microsoft Graph subscription to monitor changes in SharePoint document libraries using application permissions (not delegated). However, I'm receiving the following error: { "error": { "code":…
Microsoft Security | Microsoft Graph
Microsoft Graph API Error 9999 when joining Teams meeting with AppHostedMediaConfig
Problem I'm developing a Microsoft Teams bot using application-hosted media to join meetings and capture audio. The bot successfully authenticates and passes all permission checks, but fails when attempting to join a meeting with Error Code 9999 from…
Microsoft Security | Microsoft Graph
How to do a GetAsync() on retentionevents using an application token?
I'm trying to retrieve all retentionevents from Purview using an application token like this: var graphClient = await _graphService.GetGraphServiceClientAsync(tenantId, clientId).ConfigureAwait(false); var allRetentionEvents = await…
Microsoft Security | Microsoft Graph
Getting "This API is supported only for scheduled or recurring" when accessing meeting recording
I have as Subscription set to: change: 'created' resource: 'users/{userId}/onlineMeetings/getAllRecordings' I have two meetings scheduled in my calendar: May 5th August 5th Now for both events when I join and record it I'm getting correct…
Microsoft Security | Microsoft Graph
Programmatically enable litigation hold (not possible)
Hello. I recently wondered how to get the litigation hold status in Exchange programmatically. I thought Set-Mailbox -LitigationHoldEnabled $true would do the trick and I could use it in my scripts. But I was extremely disappointed; to be honest, it took…
Microsoft Security | Microsoft Graph
Create auditLogQuery v1.0 not available and inaccurate results from pagination
Hello! I'm exploring the Graph API for querying the Unified Audit Log via the following endpoint: POST /security/auditLog/queries I've been discovering some discrepancies in two ways: Total # of documents returned is not the same over multiple…
Microsoft Security | Microsoft Graph
Microsoft Graph Event Hub Subscription fails with ValidationError despite verified configuration
Problem Description I'm unable to create Microsoft Graph Change Notification subscriptions with Azure Event Hub as the notification endpoint. The subscription creation consistently fails with a ValidationError. Error Message { "error": { …
Microsoft Security | Microsoft Graph
406 error when converting word document to pdf fails when it contains html fragments (afchunk.htm)
We are using the graph api to convert word documents to pdf using the REST described in call https://learn.microsoft.com/en-us/graph/api/driveitem-get-content-format?view=graph-rest-1.0&tabs=httpai-weu-uat Normally this works fine: As is depicted…
Microsoft Security | Microsoft Graph
Authenticate to Microsoft Defender for Endpoint API using Managed Identity or Azure Automation
Hi, I need to access the Microsoft Defender for Endpoint API using our managed identity in Azure Automation. I have successfully given my managed identity for Azure Automation access to the WindowsDefenderATP Enterprise App. However, when I attempt to…