none
Get access to Microsoft Graph API via Microsoft Application RRS feed

  • Question

  • I create Microsoft application 335a4fb5-f2dd-4e7d-ac74-e21c78394694 (owner user - dulka100285@outlook.com. This user also is tenant of this application)

    I have tried to get access token for this aplication follow the instructions https://developer.microsoft.com/en-us/graph/docs/concepts/auth_v2_service

    I create the tenant in Azure AD for my user dulka100285@outlook.com and sign the subscription.

    As I right understand this tenant has GUID = e7e4029b-bad0-4c0d-ab48-20ae0dd1e5dd

    After this I configure URL for getting administration access:

    https://login.microsoftonline.com/e7e4029b-bad0-4c0d-ab48-20ae0dd1e5dd/adminconsent?client_id=335a4fb5-f2dd-4e7d-ac74-e21c78394694&state=12345&redirect_uri=https://grasp.exposit.com/auth/microsoft/

    After putting this URL to the browser I got the following screen:

    After clicking the "Accept" button I was successfully redirected to my application page (provided redirect URL)

    After that I try to get access token for my application administrator and got the success result (see image below)

    But when I use this access token for Microsoft Graph API I had the 401 Unauthorized response:

    My application has Calendars.ReadWrite.All permissions

    Could you please help me, because I do not know where I made the mistake.

    Monday, May 21, 2018 11:50 AM

Answers

All replies