Questions tagged [microsoft-graph-api]

Microsoft Graph is the gateway to data and intelligence in Microsoft 365. It provides a unified programmability model that you can use to access the tremendous amount of data in Microsoft 365, Windows 10, and Enterprise Mobility + Security.

Microsoft Graph exposes REST APIs and client libraries to access data on the following Microsoft cloud services:

  • Microsoft 365 services: Delve, Excel, Microsoft Bookings, Microsoft Teams, OneDrive, OneNote, Outlook/Exchange, Planner, SharePoint, Workplace Analytics.
  • Enterprise Mobility and Security services: Advanced Threat Analytics, Advanced Threat Protection, Azure Active Directory, Identity Manager, and Intune.
  • Windows 10 services: activities, devices, notifications, Universal Print (preview).
  • Dynamics 365 Business Central.
13005 questions
9
votes
3 answers

Microsoft Graph API - AADSTS90094: The grant requires admin permission

I've created an application in https://apps.dev.microsoft.com (Platforms: Web) This app needs the admin consent for certain permissions. I remember, in the past, accessing https://login.microsoftonline.com/{tenant…
9
votes
1 answer

Microsoft graph live status monitoring

Is there any portal where we can check the live status of different Microsoft Graph endpoints? Something like we have for Azure? Recently when accessing some Graph endpoints from India we are getting lots of 504 on random endpoints, sometimes we…
Deepak Sharma
  • 1,873
  • 10
  • 23
9
votes
2 answers

MicrosoftGraph API fails to mark a message as read

I am using the Microsoft.Graph nuget package (version 1.6.2) and I try to mark an email as read. This is the code: msg.IsRead = true; await…
NoOne
  • 3,851
  • 1
  • 40
  • 47
9
votes
4 answers

How to call Microsoft Graph from console application c#

I need to call Microsoft Graph API to create user in Azure AD. First I need to test from console application and then need to implement in Azure function. https://developer.microsoft.com/en-us/graph/graph-explorer I am new to Microsoft Graph API ,…
Furqan Misarwala
  • 1,743
  • 6
  • 26
  • 53
9
votes
2 answers

Using Microsoft Graph client sdk how would you use search Odata query

Using Microsoft Graph client sdk how would one go about using search Odata query to lookup if subject or body contains a certain search term. The $search Odata query parameter is available in the Graph Client api, but i could not find how to use the…
John Staurt
  • 225
  • 3
  • 13
9
votes
2 answers

Office 365 Graph API $top not being honoured on delta queries

The Office 365 Graph API documentation suggests that $filter and $top operations should be supported when used together on a delta…
David de-Vilder
  • 890
  • 1
  • 8
  • 18
9
votes
1 answer

MS Graph, daemon app 401 unauthorized on Files.ReadWrite.All calls

UPDATE: I've received notice from Microsoft that this problem is a bug in the Graph API. They're working on a solution. I'm using the new v2.0 OAuth flow to authenticate my app for use with Microsoft Graph to make it able to list any users files,…
9
votes
4 answers

c# how to get office 365 user photo using microsoft graph api

I want to be able to get all user's office365 photos within Azure Active directory. Right now I'm able to get the current user's email using graph SDK GraphServiceClient graphClient = SDKHelper.GetAuthenticatedClient(); public async Task
9
votes
1 answer

Single quote escaping in Microsoft Graph

I'm trying to query users by displayName, but I have trouble escaping single quote when sending the request by both C# SDK and Graph Explorer. Update: It's not clear in the example, the search term I have trouble with is I' Example query:…
9
votes
1 answer

How should I determine if an MSAL account has an Exchange based email system? (got an exception)

I am working with MSAL and have a user who received the following error: { "error":{ "code":"ResourceNotFound", "message":"Resource could not be discovered.", "innerError":{ …
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
9
votes
5 answers

MS Graph API: invalid authentication token

I'm trying to use the Microsoft Graph API to query an Outlook/O365 mailbox for messages. I registered my app in the Azure portal and received the necessary information to query the API. The app has the Mail.Read permission. (I don't have access to…
vaindil
  • 7,536
  • 21
  • 68
  • 127
9
votes
5 answers

Authorization_IdentityNotFound Error while accessing graph API

I have searched with the error which I found, Did not find any matching questions. So posting a question. Appreciate it if someone provides some pointers to proceed. My goal is to access graph API in my desktop client. I have started using fiddler…
9
votes
3 answers

Contains filter on Microsoft Graph query not working

I'm trying to user the contains filter on a /users query, like this for example: https://graph.microsoft.com/v1.0/users?$filter=contains(displayName, 'Garth') However, this results in a BadRequest response saying "An unknown function with name…
bstrm
  • 159
  • 1
  • 1
  • 7
9
votes
1 answer

Office 365 API - Creating New User, Getting Licensing Information; Which API to use?

My searches for this have come back completely in vain, I'm not even sure if it's possible. This is entirely possible in Powershell, and I already do this in Powershell but I want to write a C# program to perform certain tasks and cannot find which…
Trinitrotoluene
  • 1,388
  • 5
  • 20
  • 39
8
votes
5 answers

DelegateAuthenticationProvider not found after updating Microsoft Graph

I have the following code (copied from Microsoft Learn), that was working fine with Microsoft.Graph 4.54.0 var authProvider = new DelegateAuthenticationProvider(async (request) => { // Use Microsoft.Identity.Client to retrieve token …