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

Not Authorized to access this resource/api, forbidden #4

Open
bisser-cw opened this issue Oct 30, 2023 · 1 comment
Open

Not Authorized to access this resource/api, forbidden #4

bisser-cw opened this issue Oct 30, 2023 · 1 comment

Comments

@bisser-cw
Copy link

Hi,

For some reason, although https://www.googleapis.com/auth/drive.readonly and https://www.googleapis.com/auth/admin.directory.user.readonly scopes are granted to the service account I'm getting Error: error creating service: unable to retrieve users: googleapi: Error 403: Not Authorized to access this resource/api, forbidden
Could it be that another scope is needed or I'm not doing it the right way?

@bisser-cw
Copy link
Author

I think I found the reason for this - the domain admin must have some specific rights. I tried with my account, I have soma admin rights but I'm not a super admin and goth the error above. I tried with a super admin account and it seems to be working.

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

No branches or pull requests

1 participant