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 update admin users #440

Open
charles-astrafy opened this issue May 16, 2023 · 1 comment
Open

Not authorized to update admin users #440

charles-astrafy opened this issue May 16, 2023 · 1 comment

Comments

@charles-astrafy
Copy link

Terraform Version

Terraform 1.3.9

Affected Resource(s)

googleworkspace_user

Problem:

It seems terraform cannot update a user that has some admin rights defined. The SA we use with terrafomr has super admin roles on Google Workspaces but still we get the following error when trying to update a user that has some admin roles defined:

--> Error: googleapi: Error 403: Not Authorized to access this resource/api, forbidden

Expected Behavior

We would expect terraform to be able to manage also admin users.

@SamuZad
Copy link

SamuZad commented May 11, 2024

For what it's worth: the provider can manage admin users, but only if domain-wide delegation is enabled: https://developers.google.com/workspace/guides/create-credentials#delegate_domain-wide_authority_to_your_service_account

The docs should definitely be clearer about this

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

2 participants