GraphServiceClient error: Either scp or roles claim need to be present in the token.
A bit of context: My goal is to have an app running on Azure that will eventually access SharePoint sites in different tenants. The idea is that once authorized, this app will connect to all tenants using the same app id and secret. A multi-tenant…
How to get a message using Graph from a mailbox using data in an email header
I want to use the details found when you view an email message as source (headers, spam results, body content etc) to ping the Graph API to retrieve certain details of the message. This would be done with an app that has application permissions. It would…
How to stop default mail triggers when creating an calendar events using microsoft graph API's?
I'm trying to create calendar events using the below endpoint, https://graph.microsoft.com/v1.0/me/events and HTTP method used is POST, here i want to stop the default email invitations sent to the recipients of the events because it is spamming the…
OneNote Graph API - Shared Notebook
Hello, We've been trying to retrieve data (pages content) via the OneNote Graph API from a shared notebook which is located on a SharePoint site without success, even though we are able to access the notebook via the app, as well as the SharePoint…
presence: setStatusMessage - Throws 401 error
Hey, I am trying to use Graph API to set the status message of another user. I tried it via PowerShell and Graph Explorer and both ways gave me the same error. "message": "Cannot set the presence of another user. Authenticated user: I…
microsoft event subscription
Hi, i have a problem with microsoft subscription API. I use: "resource" => "/users/{$userId}/events", "changeType" => "created,updated,deleted", https://graph.microsoft.com/v1.0/subscriptions This…
Removing meeting blob for an online meeting does not remove the online meeting details
I'm integrating our production app with Outlook calendar and encountered this issue. I'm using a personal outlook account with skype as the online meeting provider and tried to update an online meeting to an offline meeting. I was using the update event…
graph.microsoft.com api to raise group access request that can though myaccess.microsoft.com approval process
I want to use myaccess.microsoft.com programmatically. but it do't have apis, it say that i can use graph.microsoft.com api . but when i am using graph.microsoft.com api , it give below error. i want to use graph.microsoft.com api to raise group access…
Graph retention label api returns failed to contact DataInsights in EOP error with application permission
We are getting 500 error from https://graph.microsoft.com/v1.0/security/labels/retentionLabels when we use application permission. The error is as below. And the https://graph.microsoft.com/v1.0/security/labels/retentionLabels/{LabelId} Api works ok. …
Suddenly getting "UserPrincipal doesn't have the key ID configured"
I have an ongoing automation that executes various calls to the MS API Recently I've started to fail with the following message below. In this case, reauthenticating helped solve the issue but it seems like the 'refresh token' timed out for some…
Why API extract from user folder doesnt show sent items. but they have sent items in their mailbox
Hi, I am extracting folders for each user from API extract. I cannot see some user's sent items folder. They have this folder available in their outlook but somehow , it doesnt appear in extract . Why ? I can see inbox , archive , deleted items but sent…
Unable to create Azure Custom Role using JSON and the PoweShell New-AzRoleDefinition ?
When I execute the below PowerShell script to create a custom Azure Role based on the specific JSON content below. Script: $paramNewAzRoleDefinition = @{ InputFile = C:\Custom.JSON Verbose = $true Debug = $true } New-AzRoleDefinition…
Microsoft graph api while posting comments gives missing header Client-Request-Id even though its passed
When trying to post comment on a word document using the microsoft workbook comments api getting https://graph.microsoft.com/v1.0/sites/{siteid}/drive/items/{itemid}/workbook/comments Error message:…
Suddenly gets UnknownError using the /search/acronym endpoint
As from Monday 16th I constantly get an error when trying to connect to the acronym endpoint: https://learn.microsoft.com/en-us/graph/api/resources/search-acronym I have not changed anything in the way I connect or anything and it worked when I left…
Teams Analytics
One of my users has a Microsoft Teams, and he is the owner of a team with various channels. When the user selects a channel and clicks "Manage channel," they can see the Analytics tab. In the Analytics tab, the user can check the channel's…
What Graph API permissions are required to provision an external user to an app?
I want to invite an external user to an app, and want to set up the appropriate permissions in order to automate the process. Following the documentation this is what I have so far. I'm just wondering if there's a piece of the puzzle missing. By…
Is it possible to create tenant level allow/block in Microsoft 365 via Graph API?
There is a method via Powershell that requires the Exchange.Manage permission and Exchange Administrator assigned role on a Service Principal. This method requires to connect to Exchange Online first and then running the New-TenantAllowBlockListItems…
Unable to get a Microsoft Graph Token
I am a user in the Azure tenant directory, trying to get a Token to send a message to a Teams channel. I can do that via Microsoft Graph Explorer. When I use a Token that Microsoft Graph generates I can send a message to Teams channel via curl and…
Sharepoint permissions
Hi All,I have a SharePoint site, let's call it "tempsite," and I have generated a Client ID using the following URL: https://contoso.sharepoint.com/sites/tempsite/_layouts/15/appregnew.aspx I have assigned permissions to the Client ID using…