Search code examples
google-cloud-platformgoogle-cloud-functionsgcloudgoogle-iam

How to get the list of all the Members in IAM in Google Cloud


I have provided access to so many user in my GCP account using IAM > ADD Member. I want to get the list of all the members present in IAM using gcloud CLI. I have not created any group for them, just simply added their mail id's and granted them permission. Is there any way to get the list of all the members using cloud shell?


Solution

  • If you have the right access privileges this command on cloud shell should give you the list of users. gcloud projects get-iam-policy <name of the project>