Skip to content
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

Cannot access customers informations because I'm not admin. #116

Open
VincentLanglet opened this issue Jun 2, 2022 · 1 comment
Open

Comments

@VincentLanglet
Copy link

I saw the following issues about groups: #86

When connecting to google with oauth, I added the scope

https://www.googleapis.com/auth/admin.directory.customer.readonly

Then I try to access to

'https://admin.googleapis.com/admin/directory/v1/customers/my_customer'

I'm getting an error Not Authorized to access this resource/api.
According to some research, it seems like that the api can only be requested by admins. (I tried with an admin and it works).
If I want to do it with a non-admin user, it require impersonating https://developers.google.com/admin-sdk/directory/v1/guides/delegation#python

How is this supported with this library ? @shadowhand

@bradjones1
Copy link

This seems out of scope/support request for Google's API rather than anything this library is responsible for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants