Set the scope parameter for Microsoft Graph

Viewed 14712

I have registered an app with apps.dev.microsoft.com

And set its permissions to this: Screen shot from apps.dev.microsoft.com panel

I am getting a token to use Microsoft Graph API like this:

https://developer.microsoft.com/en-us/graph/docs/concepts/auth_v2_service#4-get-an-access-token

I set the scope to: scope=https://graph.microsoft.com/.default

I get back a token without Directory.ReadWrite.All permission.

How can I modify the request to get back the token with permission specified under apps.dev.microsoft.com portal? Should I change the scope parameter?

I tried with graph.microsoft.com/directory.readwrite.all as suggest online, without any luck.

1 Answers
Related