Search code examples
azureazure-active-directory

How to get ms.graph.app.graphUserScopes from azure?


How to get ms.graph.app.graphUserScopes and ms.graph.user.license.skuId from Azure?

I opened the application on Azure but I didn't find it out.

Where can I find it to integrate it with the Java Spring project?


Solution

  • To find the ms.graph.user.license.skuId run below query in Graph explorer:

    GET https://graph.microsoft.com/v1.0/users/UserID/licenseDetails?$select=skuId
    

    enter image description here

    To find the ms.graph.app.graphUserScopes make use of below query:

    GET https://graph.microsoft.com/v1.0/users/UserID/oauth2PermissionGrants`
    

    enter image description here