Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,015 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I am implementing sign-in via Microsoft and face the invalid_scope issue which I can't get and solve. So, I added the profile
scope for my client here (this is Azure portal UI - App registration)
But if I try to add this into auth request like this:
https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize?client_id={my-client}&scope=https%3A%2F%2Fgraph.microsoft.com%2Fprofile&response_type=code&redirect_uri={redirect-value}&state={state-value}
or even
https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize?client_id={my-client}&scope=profile&response_type=code&redirect_uri={redirect-value}&state={state-value}
result is the same - the invalid_scope
error. The scope https://graph.microsoft.com/User.Read
works fine.
Could you help me to get what is wrong with my request and how it should be?
Thank you