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.