GAM comands to delete users from specific roles works on some users but not others

118 views
Skip to first unread message

Cameron

unread,
Feb 25, 2022, 12:58:36 PM2/25/22
to GAM for Google Workspace
I have an issue where this used to work all the time, and now some users it no longer does.  I have a custom admin role we created, and at times I've been running GAM against a CSV to remove specific users from a specific admin role, going by the name of the role.

This works for about 70% of the users.  For the others it just doesn't work, even though they are just part of the same admin role (set to a specific OU.)

The general command is as follows (with made up details.)

gam csv RemoveFromCustomAdmin.csv gam delete admin "~user" "Custom Role" org_unit /Root/SpecialOU

For several users it removes them from the "Custom Role" admin role as expected, for the rest it says that they are not part of the role.  But when I go look,, they are.  I then set a test account on that role and get the same issue - it claims the role doesn't exist for those users.  I have no idea why it works for some and not others.

Reply all
Reply to author
Forward
0 new messages