Closed psalaberria002 closed 3 years ago
Yes, this condition prevents users trying to add nested groups as role OWNER (which is not allowed by the admin API)
That happens in a different block in the same file. This block is hit even when the member is not a group. I suspect is coming from an old copy paste.
@DeviaVir can you have another look?
We had a case where the API had some users with the MEMBER role, but the Terraform config was trying to set the OWNER role to them.
We got
Error: [ERROR] Error updating memberships: [ERROR] Error updating groupMember (x@x.com): nested groups should be role MEMBER
which made no sense.Is there any reason for that condition to be in the reconcile function?