This repository has been archived by the owner on Jun 27, 2021. It is now read-only.
gsuite_group_members resource is case sensitive in places where the Admin API isn't #128
Labels
bug
Something isn't working
Hi all, first of all thanks for this provider. It's very useful and helps plug a gap in my organization's ACL management strategy. I will soon link an interesting open source project that uses your provider heavily, once it is approved by my company to release. :)
In my tool, I use the
gsuite_group_members
resource to bulk set the entire membership of a group. However, I find that this resource is case-sensitive when I don't think G Suite actually cares.To reproduce,
[email protected]
[email protected]
[email protected]
using thegsuite_group_members
provider. (note the modified case)At this moment, the user will actually be a member of the group. However, once you
terraform plan
again, we detect the case difference and the provider will want to remove the cased membership, and re-add the lowercased membership (even though it all washes out to the same thing.)Example output:
While I'm not sure what consequences this would have, it would seem that making the provider insensitive to differences in member email casing would fix this problem. That could be done by taking the lowercase value of emails in both state and remote configuration pulls. If that seems reasonable, I'm happy to submit a PR, but first want to check with the geniuses of G Suite in this community to see if that's the right idea first.
Thanks!
The text was updated successfully, but these errors were encountered: