Can't update group members that don't have the MEMBER role
ricardograca-scratch opened this issue · comments
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.
A group cannot be owner of another group.
No such thing is going on here. The affected email account belongs to a user not a group, which is even stranger.
@DeviaVir Have you had a chance to look into this? I can provide an example code to reproduce this issue in case it helps.
Oh yes, that would help.