Skip to content
This repository has been archived by the owner on Jun 27, 2021. It is now read-only.

Can't update group members that don't have the MEMBER role #179

Open
ricardograca-scratch opened this issue May 10, 2021 · 4 comments
Open
Labels
question Further information is requested

Comments

@ricardograca-scratch
Copy link

Version: 0.1.58

I'm trying to update the role of a group member from MEMBER to OWNER, but the deployment process fails with error:

[ERROR] Error updating memberships: [ERROR] Error updating groupMember (<--redacted-->): nested groups should be role MEMBER

After looking at the code in gsuite/resource_group_members.go#L280 it seems that the role is hard-coded as MEMBER. Shouldn't this check for any type of valid group role?

I can see that in reality the role hasn't been changed yet, so this error is a bit puzzling.

@DeviaVir
Copy link
Owner

A group cannot be owner of another group.

@DeviaVir DeviaVir added the question Further information is requested label May 12, 2021
@ricardograca-scratch
Copy link
Author

No such thing is going on here. The affected email account belongs to a user not a group, which is even stranger.

@ricardograca-scratch
Copy link
Author

@DeviaVir Have you had a chance to look into this? I can provide an example code to reproduce this issue in case it helps.

@DeviaVir
Copy link
Owner

Oh yes, that would help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants