Microsoft Q&A
Microsoft Graph Permissions API
260 questions
A Microsoft API that lets you manage permissions programmatically.
Content
Need to register AzureAd app from Graph API and API permission for graph API for Application permission without Azure Portal
I need to register the app from Graph API. Add permission to an app, Microsoft Graph, and application permission. Grant the application permissions. All these three steps need to done from Graph API. The first step is done below: Application…


BookingsAPI - Forbidden to get Appointment
Hello, I use the MS Bookings API solutions/bookingBusinesses/ I call the API with an App-Token when I call to List all Booking Businesses solutions/bookingBusinesses I get HTTP 500 - which is not correct, it should be a 403 Forbidden (as far as the…


How do I get team id after oauth?
I noticed that some of the API calls I'm about to invoke requires the team_id of the user. How do I get that? This is a multi tenant app. Hence, I know nothing about the user before hand.


Is it possible to obtain Games.Read without paying?
Hello! This question might be a little out of place, but I believe this is the best place to ask. I'd need access to data provided by the Microsoft Graph API, which is only available with am access token with Games.Read permissions. From what I've…
Microsoft Graph 'GetPresence' without user sign-in
Hi! I tried to send a request to "/communications/presences/{userId}", but I only received a 200 (Success) response when I made a sign-in (using Delegated access token). However, I need to do this without any sign-in scenario. Is there any…


Teams Tab application permission delegated version of Chat.Read.All permissions
Our team is working on a teams tab application, and are running into a permissions issue. The application to request to…


access policy 404
Hello! i'm trying to create teams meeting request with @microsoft/microsoft-graph-client But first it say i have to create an access policy so i'm doing : Get-AzureADApplication So i get : ObjectId AppId …
I am trying to run Graph queries to GET Enumerate the document libraries under the root site, it is not giving me any values in the Response Preview.
I am trying to run Graph queries to GET Enumerate the document libraries under the root site, it is not giving me any values in the Response Preview. I have attached the Screenshot for your reference.


Without elevated permissions, the product doesn’t install.
App Policies: 10.3 Without elevated permissions, the product doesn’t install. If elevated permissions are required then include this requirement in the Description for the Store Listings. Tip: A Windows product may run flawlessly during development…


C# OneDrive upload client error CompactToken parsing failed with error code: 80049217
I successfuly got access token for OneDrive. But when i try to upload a file i got following error: Code: InvalidAuthenticationToken Message: CompactToken parsing failed with error code: 80049217 Note that same code always works on my development…
Change notification - create subscription error Operation: Create; Exception: [Status Code: ServiceUnavailable; Reason: Target resource ; hosted on database ; is currently on backend Unknown
Operation: Create; Exception: [Status Code: ServiceUnavailable; Reason: Target resource 'xxxxxxxx-xxxx-xxxxxxx-000000000000' hosted on database 'xxxxxxx-xxxxxxxx-xxxx-xxxxxxxx' is currently on backend 'Unknown'] What to do? Request data: var sub = new…


How to remove/revoke permission once granted.
Hi, community. When I was checking Microsoft Graph APIs for a demon type app, without users' login, Admin gave some consents from Azure Portal to my app and Sites.FullControl.All permission from Graph Explore to me. Since we found it worked well,…


i am always getting authentication failed error while i am logging my outlook account through imap in nodejs but i am getting bearer token from @azure/msal-node package and i am using scopes: ['https://graph.microsoft.com/.default']
This is my code for fetching access token and set to header const msal = require('@azure/msal-node'); const msalConfig = { auth: { clientId: '2f6cbac9################881595', authority: …


Delete a sharing permission from a file or folder
Hi, I have a question regarding "Delete a sharing permission from a file or folder" according to the link https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/permission_delete?view=odsp-graph-online I can delete group permission,…


On SharePoint Online, how to generate a site-collection-wide report of all external users along with the URLs they have access to? Is there any PowerShell script or GraphAPI or something else?
Hi there On SharePoint Online, how to generate a site-collection-wide report of all external users along with the URLs they have access to? Is there any PowerShell script or GraphAPI or something else? Thank you.
How to set up permission settings in a Microsoft List?
I have recently been struggling with setting up proper user access rights in my Microsoft list in SharePoint. I have it set up so that whenever a new item is created in SharePoint, the assigned person(s) receives an email link that will redirect them…


How to save email attachment in outlook email to local drive through Graph API
Hi Team, I am trying to read the mails and save the attachments in local drive from outlook by using Graph API, so here the problem is I am unable to save the mail attachments(.eml) but am able to save remaining like Microsoft Excel, Word, PDF, Image…


Microsoft Graph API - Access a database after logging in - credential work flow
So i am using Microsoft Graph API with the JavaScript client, Im creating a React, Node/Express and PostgreSQL database. (might not be relevant to my question). But i need to create a database in the backend where when a user login's i can CRUD there…


Microsoft Graph API - Access a database after logging in - credential work flow
So i am using Microsoft Graph API with the JavaScript client, Im creating a React, Node/Express and PostgreSQL database. (might not be relevant to my question). But i need to create a database in the backend where when a user login's i can CRUD there…


Microsoft Graph API - Access a database after logging in - credential work flow
So i am using Microsoft Graph API with the JavaScript client, Im creating a React, Node/Express and PostgreSQL database. (might not be relevant to my question). But i need to create a database in the backend where when a user login's i can CRUD there…

