Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using tokens from microsoft graph with sharepoint rest api

Is it possible to use tokens returned from Microsoft Graph with the SharePoint REST API or with SharePoint Client Context?

like image 433
user1132439 Avatar asked Jun 07 '26 12:06

user1132439


1 Answers

You can access parts of the SharePoint API through Microsoft Graph, but I think you're asking about something different - using a single auth flow across services.

If you're using V1 auth (ie. you are explicitly specifying a 'resource' when getting you auth code and token), it's possible but you'll have two unique tokens - one for each resource. This is possible by using multi-resource refresh tokens in which you can fetch a token for resource 2 by using the refresh token of resource 1.

like image 176
Dmitry Pimenov Avatar answered Jun 10 '26 04:06

Dmitry Pimenov