You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 27, 2021. It is now read-only.
Hi @DeviaVir I have tested the provider, and it works so good using admin credentials. Thanks for this.
However i have this question: Does this provider work if we use impersonated email without admin privileges, or do you have some workaround in progress, or we are limited by the same scope of the Google api itself?
As the same non admin user [email protected] i use the gcloud credentials and the plan works as expected, but i cannot import any of pre-existed groups, as it just through this provider i could not create/manage none of the gsuite resources i created before manually.
Taking point 1,2 i am using the provider like this, and as i said before, it worked perfect using an admin user, but in the second scenario, it did not,
where impersonated_user_email is [email protected], and credentials is the path with json data i get when i authenticate with gcloud, example "/home/developerx/.config/gcloud/application_default_credentials.json"
The error when importing a pre-existing group (which i can see from GCP account and from Gsuite workspace) is this:
Error: [ERROR] Error fetching group. Make sure the group exists: Get "https://admin.googleapis.com/admin/directory/v1/groups/test%40anydomain.com?alt=json&prettyPrint=false": private key should be a PEM or plain PKCS1 or PKCS8; parse error: asn1: syntax error: sequence truncated
The text was updated successfully, but these errors were encountered:
Hi @DeviaVir thanks again for your latest feedback and help, i have tried but seems if a user is not admin within the organization cannot e.g take or import existing groups even if is authenticated with same credentials used from web console, would you please give me more hints about this use cases or limits, maybe i can check and understanding this could make some contribution in the next future, thanks in advance.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi @DeviaVir I have tested the provider, and it works so good using admin credentials. Thanks for this.
Scenario
As a non admin user e.g [email protected] i am able to create groups from the Gsuite workspace https://groups.google.com/all-groups
As the same non admin user [email protected] i use the gcloud credentials and the plan works as expected, but i cannot import any of pre-existed groups, as it just through this provider i could not create/manage none of the gsuite resources i created before manually.
Taking point 1,2 i am using the provider like this, and as i said before, it worked perfect using an admin user, but in the second scenario, it did not,
where impersonated_user_email is [email protected], and credentials is the path with json data i get when i authenticate with gcloud, example "/home/developerx/.config/gcloud/application_default_credentials.json"
Having this resource coded lilke:
And being sure the group already exists with mail "[email protected]" , i run the import command like
terraform import gsuite_group.test "[email protected]"
The error when importing a pre-existing group (which i can see from GCP account and from Gsuite workspace) is this:
Error: [ERROR] Error fetching group. Make sure the group exists: Get "https://admin.googleapis.com/admin/directory/v1/groups/test%40anydomain.com?alt=json&prettyPrint=false": private key should be a PEM or plain PKCS1 or PKCS8; parse error: asn1: syntax error: sequence truncated
The text was updated successfully, but these errors were encountered: