Authorization process in Node.js is not working
Hello, I want to connect to the Outlook Calendar API to read, create, update, and delete events. For this, I need to ask the user for consent. The first thing I'm doing is to generate the login URL like this: const msalConfig = { auth: { clientId:…
how to verify azure access token gotten from client web app and sent to python server
I get an azure access token from my client SPA (single page application) using MSAL (Microsoft authentication library) as a public client application. I then send the access token received after successful authentication to my python server by including…
Ms graph TimeOff note/description/comment
When a user creates a timeoff, he can leave a comment or note for that timeoff. Sometimes this is very important; for example, there may be a description of the reason for changing the schedule and the working time. But for some reason I can’t find…
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":…
Remove-MgGroupMemberDirectoryObjectByRef: Insufficient privileges to complete the operation
I am trying to use the Remove-MgGroupMemberDirectoryObjectByRef -GroupId $groupId -DirectoryObjectId $userId to remove users from a group. It works fine when using an account that has global admin permissions but using a service principal with…
Is Graph Api getStaffAvailability endpoint supposed to be this slow?
Hey there! I have a registered app in my Azure Ad with its API permissions set to allow read and write to Microsoft Bookings. I use "bookingsBusiness: getStaffAvailability" in order to build a time table with slot times for a booking module.…
How MS Graph API works when $filter and $top query params used together
I am using MS Graph API for fetch group chats of users with below details: Endpoint: /users/<user-id>/chats?filter=chatType+eq+%27group%27&$top=1 Here ideal expectation is that, it shoul filter all the chats first and then return first record,…
unauthorized_client: The client does not exist or is not enabled for consumers
Hello, when I was doing the following exercise: https://learn.microsoft.com/en-us/training/modules/msgraph-toolkit-intro/4-exercise-sign-into-app to Use Graph Toolkit with this index.html : <head> <meta charset="UTF-8"> <meta…
Getting "The remote server returned an error: (400) Bad Request."Error while request AccessToken using Tenant
Hello Team, Actually I am try to get AccessToken using Using the TenantId after Admin consent successfully completed admin by using the following endpoint "https://login.microsoftonline.com/common/adminconsent", then I am requesting the…
How to fix weird registry error when using PowerShell Graph SDK to update a user's profile photo
[UPDATE] As of 4/25/2024 (tested), the latest version of the Graph SDK (2.18.0) has resolved these issues. Per GitHub, the fixes were rolled out with 2.17.0, so that version and any further versions should work just fine. PREVIOUS WORKAROUND was to…
Request OAuth2.0 token using azure app services managed identity
Hi All, I have a question on Azure App Service Managed Identity. Currently we are working on an API project where it provide the function to interact with user in Azure Entra thru Microsoft Graph API calling. To protect the API function, we have a…
Error "The DeveloperEmail field is required." when setting up Graph Data Connect
Hello, I'm trying to set up Graph Data Connection using this tutorial: https://github.com/microsoftgraph/dataconnect-solutions/tree/main/solutions/ona/PreRequisites Unfortunately, I cannot finalize the process, because when I click on "Create",…
How to distribute the app which is created on entra.
How to distribute the application or what are the ways to distribute it between different organisations?
How to get Download Url through Download contents of a driveItemVersion resource API
Hi, I'm using below api to get previous version download URL. GET /drives/{drive-id}/items/{item-id}/versions/{version-id}/content The problem is it's returning the file stream(see below). Can any one help me how I'll find the download…
API for approval app in teams - is there any API available for creating new approval in teams?
Graph API to create New Approval Request and Capture the response of Approval Request back to external system.
Issues with Delta Query on Graph API: Loading Only Specific Drive Items
I'm trying to use the Microsoft Graph API to specifically load and monitor only shared items from a drive. I'm following the delta query method described here: Best practices for discovering files and detecting changes at scale I've tried different…
Unable to download images/stickers from Teams graph API call
We are using teams graph to generate transcript for different kinds of chats. We are using the below for downloading images/sticker images however we get either distorted image/ if we replace <img> tag with <span> then it gives us just the…
Error AADSTS500202 when trying to start MS Shifts in MS Teams
Hi! I have a personal MS Teams Account and simply want to start MS Shifts from MS Teams. I keep getting the following error message: AADSTS500202: User account '{EUII Hidden}' from external identity provider 'live.com' is not supported for API version…
Error: 401 - FileOpenUserUnauthorized - Graph API - OneDrive personal account
Hi, We are integrated with OneDrive and Sharepoint to Read and Write Excel files using Graph API. We are facing a problem, recently, in some users' accounts that use OneDrive with personal account type(not work and neither school). Some operations…
Graph sometimes returns html response even when json is requested
We have a golang application which uses graph SDK to do exchange/onedrive/sharepoint API calls. We set Accept header to application/json. But sometimes, graph server returns responses in text/html format, which causes content type text/html does not have…