0

Is there a way to use the Bearer token provided by a SharePoint App-Only¹ registration, to get access for Microsoft Graph features² like Drive list, Excel Create TableRow³, etc?

I was able to get a token using the example "Using this principal in your application without using the PnP Sites Core library", but when I tried to list sites, for example I got not authorized exception

  1. https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs
  2. https://learn.microsoft.com/pt-br/graph/overview?view=graph-rest-1.0
  3. https://learn.microsoft.com/en-us/graph/api/table-post-rows?view=graph-rest-1.0&tabs=http

1 Answer 1

0

Token for SharePoint App-Only and token for Microsoft Graph cannot be used vice versa.

Apps registered in for SharePoint App-Only and Microsoft Graph have different client id, etc.

Also permissions scopes are totally different.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.