I've Web App and API registered at https://apps.dev.microsoft.com. In my API, I've added in Pre-authorized applications my Web APP ID. So far so good. It works with the following scopes: openid, profile, and api://APP_ID_GUID/access_as_user.
I also need access to Microsoft Graph, but adding https://graph.microsof.com/user.read to my scopes results in:
AADSTS700022: Provided value for the input parameter scope is not valid because it contains more than one resource. Scope
openidprofilehttps://graph.microsoft.com/user.readapi://APP_ID_GUID/access_as_useris not valid.
How can I get token so I can use both? I need only to list the users in the Active Directory. The only way I see it is to get a separate access token for Microsoft Graph and use it when I want to query the users from AD.