Admin Permissions with Microsoft Graph Quickstart

Anonymous
2022-07-22T18:34:11.343+00:00

Hi,

I'm having trouble with the python Microsoft Graph API quickstart (https://github.com/microsoftgraph/msgraph-training-python/tree/main/demo#configure-app-only-auth-aad-admin-center). I have downloaded the code and followed the app registration accordingly.

In order to get my access token, I have been following the steps which ask me to login here: https://microsoft.com/devicelogin

Each time I try to login and get authenticated, I reach a sign in page that says:
"You're signing in to Quickstart app on another device located in United States. If it's not you, close this page."

While I'm not entirely sure it syas I am opening it on another device, I put in my credential and login information to get this result:
"Need admin approval
unverified
needs permission to access resources in your organization that only an admin can grant. Please ask an admin to grant permission to this app before you can use it."

Is there a reason why this is happening? I am the owner of this app, why is it asking me for admin approval?

Microsoft Security | Microsoft Graph
Community Center | Not monitored
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.