-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AADSTS700016 while obtaining credential using Python SDK and a Service Principal Account #3742
Comments
Hi @kmai
it seems Could you confirm 100% there is no mistake in your dictionnary? |
Hi, as per the documentation here, the resource scope for the credentials should be
|
Hum, your service principal might not have the necessary permissions on the tenant actually. |
@kmai, you need to give your service principal some permissions to the AAD Graph or MS Graph, based on your app's need. Though for other e2e, but this doc has the relevant steps which can help you. |
@yugangw-msft actually, I do have those (and more) permissions assigned: |
But your code uses |
And reopen if you have any other questions our help is needed |
@yugangw-msft the permissions are actually granted. Is there a Python Module to query the MS Graph API? I'm really trying to avoid writing abstractions against the REST API if there's something out there that does the job.
I need this to query user membership to groups and to check if groups exist. |
MS Graph repo might help you and have Python samples: |
I'm also in the same situation as you,were you able to use the graph with ServicePrincipalCredentials? |
Azure AD Graph API is now deprecated. We do not support SDK fixes to this product anymore. Please refer to this issue for additional way to get support to move to Microsoft Graph API: |
While instantiating a ServicePrincipalAccount:
Even though I have proper permissions with the configured Application SPA (graph API access plus resource management), I get the following message:
Are Application SPAs supported? Besides API Permissions on App Registrations (Azure Active Directory), is there anything else I'm missing? There aren't many examples about this.
The text was updated successfully, but these errors were encountered: