Unable to generate access token. invalid_grant error, AADSTS65001:The user or administrator has not consented to use the application with ID
Context: I'm building a web app that intends to provide insights and analysis on user's Sharepoint and OneDrive data. Users should be able to come to my web app, connect their Sharepoint and OneDrive data by going through some oauth flow and agreeing to…
Not able to REST call to https://graph.microsoft.com/beta/appCatalogs/teamsApps
Hi Team, I need sample code in C# or documentation how can I generate token in C# code and by using that token how can I hit the URL: and make the request to that API https://graph.microsoft.com/beta/appCatalogs/teamsApps
Request to Add Copilot 365 to Sharepoint Search and Create Documents
Dear MS Copilot/Sharepoint Team, I am writing to request the integration of Copilot 365 into our organization's Sharepoint environment. To proceed with this integration, we would need your assistance in: Evaluating the compatibility of Copilot 365 with…
how to provide app permission consent to use Microsoft Graph APIs and Azure cost management APIs all read access? Also Which role is required to provide consent with lease privileges?.
how to provide app permission consent to use Microsoft Graph APIs and Azure cost management APIs all read access? Which role is required to provide consent with lease privileges?. I know we can provide the admin consent using Global Administrator, but is…
How to Authenticate Scan to email mailbox
Our organization is trying to have all mailboxes set up with MFA so we can turn of legacy. The issue is that we have scan-to-email function set up through a UserMailbox, so if we convert this to a SharedMailbox, users will no longer be able to use it for…
AD B2C Microsoft Graph to send verification code to email
Hi, I would like to know if there is possibility to send verification code to email using Microsoft graph. Basically, I want to do everything in MS Graph ie. signing up, signing in, send verification code, SMS, MFA and social media sign up and sign in.
Graph API - Get All Messages - Incoming Only
I am using Postman to connect to a Graph API in order to pull & export a users Teams Chat History. Everything is setup and I am able to get results, however I only seem to be pulling incoming messages. Is this as designed or is there a way to pull…
B2c: "userPrincipalName already exists" even though the user can't be found via the Graph API
Since yesterday 10AM UTC+2 where having some issues with creating new users via the Graph API in one of our B2c tenants. Some requests time out and retries end up with userPrincipalName already exists and HTTP 400. The problem is: the actual user cannot…
Why "Request administrator consent" if it has already consented?
I would like to migrate my PowerShell reporting script from using MSOnline module to Microsoft.Graph equivalent. Whenever I launch Connect-MgGraph -Scopes "User.Read.All" I get stuck with the following Request administrator consent…
Graph API forward mail
I'm trying to use the endpoint, POST /users/{id | userPrincipalName}/messages/{id}/forward (https://learn.microsoft.com/en-us/graph/api/message-forward?view=graph-rest-1.0&tabs=http). I'm able to send, search and get mail, but whenever I try this…
Get All SharePoint Files and Folder in a Tree structure of a Document Library using GraphAPI?
Get All SharePoint Files and Folder in a Tree structure of a Document Library? I can get all the files within the Document Library, but not in a structured way or in a tree format, by using -…
Graph endpoint teamwork/sendActivityNotificationToRecipients 400 bad request invalid Microsoft Teams domain
When I try to use the Microsoft Graph endpoint "/teamwork/sendActivityNotificationToRecipients" with this body : { "topic": { "source": "text", "value": "Test", "webUrl":…
Error revoking login session
I am loggin using OAuth (Open Authorization) 2.0, and i want to log out directly in my background without use https://login.microsoftonline.com/common/oauth2/v2.0/logout to do this log out i am using this endpoint: curl --location --request POST…
I've just got my XBOX PC Game pass. Will I lose games I download when my game pass ends?
-Apologies for the random tag, had to give one! The question really sums it up. Will I keep or lose my games (e.g. Minecraft Java) when my subscription to XBOX Game Pass ends? Cheers! -Calvi
MAUI IMAGE LOAD ISSUE USING ASSEMBLY
Hi, I'm encountering a significant problem in my MAUI development. I've developed a MAUI library project, and when I reference it in another MAUI project, everything functions correctly. However, when I attempt to use the assembly or DLL within the same…
AclCheckFailed when list chat messages via Graph API
I'm try to get messages from a chat ID https://learn.microsoft.com/en-us/graph/api/chat-list-messages GET /chats/{{chatId}}/messages GET /users/{{UserId}}/chats/{{chatId}}/messages Response: { "error": { "code":…
Resource-specific consent not showing up in permission grants
I've got an Azure app registration, and a Teams application with a manifest that specifies that ID in the webApplicationInfo. I also have the following permissions specified in the manifest: I then hit "Publish" within…
Getting forbidden while hitting the https://graph.microsoft.com/beta/appCatalogs/teamsApps
Hi Team, Now For the Token generation I am using below code : var _clientApplication = ConfidentialClientApplicationBuilder.Create("clientid") .WithAuthority("https://login.microsoftonline.com/tenantid")…
azure ad some of the filter not working with expand attribute like NOT startsWith(displayName, 'Yogendra')
azure ad some of the filter not working with expand attribute like NOT startsWith(displayName, 'Yogendra'). you can refer this screenshot
Is it possible to create webhooks with a personal account to listen to changes in an Excel file using Microsoft Graph?
I want to create a webhook to listen for changes in excel files. This is the code I have: { "changeType": "updated", "notificationUrl":"xxx.com/notificationClient/", …