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
19
votes
12 answers

IDX21323 OpenIdConnectProtocolValidationContext.Nonce was null, OpenIdConnectProtocolValidatedIdToken.Payload.Nonce was not null

I'm attempting to authenticate for Azure AD and Graph for an Intranet (Based off Orchard CMS), this functions as expected on my local machine, however, when accessing what will be the production site (already set up with ssl on our internal dns), I…
18
votes
1 answer

Which Graph API should be used with Azure AD B2C

We are looking at using Azure AD B2C in an application and I am confused about which package to use when working with Azure AD B2C. This question discusses the difference between the MSAL and ADAL library: MSAL or ADAL library for use with Azure AD…
17
votes
3 answers

How to get the organization (tenant) id from user profile using the Microsoft Graph API

I'm creating an add-in that I to sell using organizational licenses. I have implemented an authentication scheme on the add-in. I'm currently asking for User.Read scope for a sure authenticating using and Azure v2 endpoint. To get the user's…
seebiscuit
  • 4,905
  • 5
  • 31
  • 47
16
votes
2 answers

Allow all domains when adding a user to Azure B2C using the Graph API

I am trying to add a user with the email ...@gmail.com to my B2C directory via the Graph API (C#). I get this as a response: The domain portion of the userPrincipalName property is invalid. You must use one of the verified domain names in your…
rgahan
  • 667
  • 8
  • 17
16
votes
2 answers

Is there a complete list of sharepoint online rest api from official docs?

As title said, Is there a complete list of sharepoint online rest api from official docs? I've done some research. However from the MS docs I can only find Complete basic operations using SharePoint REST endpoints and Get to know the SharePoint REST…
NaaHCat
  • 450
  • 2
  • 4
  • 10
16
votes
1 answer

What is the difference between ADAL.js and MSAL.js?

I am trying to handle authentication for my app which uses Microsoft Graph. What is the difference between these two libraries? Active Directory Authentication Library for JavaScript (ADAL.js) Microsoft Authentication Library for JavaScript…
Hongbo Miao
  • 45,290
  • 60
  • 174
  • 267
16
votes
1 answer

How to create organizational contact using MS Graph or Office 365 REST API

Office 365 administration center allows to create organizational contacts which are shared with all users in organization. In MS Graph documentation API of this functionality is badly documented and located in BETA section. Moreover, there is no…
Vlad Kiselev
  • 339
  • 2
  • 9
16
votes
1 answer

Graph API: Either scp or roles claim need to be present in the token

I'm attempting to use MS Graph API to get a list of files/folders from OneDrive for Business. I've successfully executed the queries I need in Graph Explorer and am now moving on to implementing in my project. My app is a Windows service, so I'm…
baparks
  • 255
  • 1
  • 3
  • 7
15
votes
3 answers

Microsoft Graph - PopAuthenticatorInvalidSignature errors when patching to calendar events

We're seeing errors with the graph api when making a PATCH request to https://graph.microsoft.com/v1.0/me/calendars/$(CALENDAR_ID)/events/$(EVENT_ID). This is in an integration that has been in production for some time and we've never seen this…
Alexander Soto
  • 395
  • 2
  • 12
15
votes
3 answers

How to PATCH data using System.Net.Http

I have uploaded a file to SharePoint and found out what id it has. Now I need to update some of the other columns on that listitem. The problem is that System.Net.Http.HttpMethod.Patch doesn't exist. public static async Task
CET
  • 262
  • 1
  • 2
  • 12
15
votes
2 answers

Does Microsoft provide a swagger file for Graph?

I've crawled though as much documentation as I can find but I'm unable to find a swagger file for https://graph.microsoft.io/ There appear to be a couple of variations on this API and I've seen references to the Office 365 Graph API and Azure Graph…
Paul Clarke
  • 171
  • 1
  • 6
14
votes
4 answers

Create a filter query for Microsoft Graph that works equivalent to "contains"

I need to create a $filter query for the Microsoft Graph API that searches for a specific word in a string (the display name of users). For example I'd want to be able to find all users that have "Esteban" in their names: Luis Esteban Alphonse…
Ricardo Guerrero
  • 433
  • 1
  • 5
  • 21
14
votes
1 answer

Using GraphServiceClient to get refresh tokens when authenticating using UserPasswordCredential in AuthenticationContext

Sincere apologies if I miss something from this post, as I'm at my wits end after reading around for hours. I'm attempting to write a back-end service (Windows) which will connect to the MS Graph API via Azure AD. I'm using C# to knock up a…
peteski
  • 1,455
  • 3
  • 18
  • 40
14
votes
2 answers

Using $filter with Microsoft Graph Excel APIs

With Microsoft Graph I can access rows from a table like this: /v1.0/drives/..../workbook/worksheets/Sheet4/tables/2/rows The documentation states: This method supports the OData Query Parameters to help customize the response. I am able to use…
angularUser
  • 239
  • 2
  • 7
14
votes
4 answers

Paging in MS Graph API

Graph API Paging explains that the response would contain a field @odata.nextLink which would contain a skiptoken pointing to the next page of contents. When I test the API, I'm getting a fully-qualified MS Graph URL which contains the skiptoken as…
asgs
  • 3,928
  • 6
  • 39
  • 54