The World’s Largest Online Community for Developers
How do I delete a specific user from all the roles recursively - from a project or organization?
Something similar to :
gcloud projects remove-iam-policy-binding <prj id> --member user:firstname.lastname@example.org
Without providing the --role?
Role is a required flag, you can't perform this command without it. You would have to go through all the roles the person had and remove them. This is easy to see on the IAM console page.
This doc goes through all the things to consider when removing access from your project. You can delete the user via the console but also be aware of service accounts, client ID secrets, API keys, SSH keys, Cloud SQL access, Cloud Storage ACLs, BigQuery datasets and Pub/Sub topics.