The scripting provided here is for educational purposes only. There's no support on them neither liability. Use it at your own risk. This is a personal project.
This scripts will get all the permissions recursively from organization all way down to the folders / sub folder and projects using as input the file user_lists.txt
For using the scripts, you need to change the ORG_ID
variable defined in get-all-permissions-v3.0.sh
and merge-all-permissions-v2.0.sh
and also have a list of users to get the iam info from, the file user_list.txt.
resourcemanager.folders.get
resourcemanager.folders.getIamPolicy
resourcemanager.folders.list
resourcemanager.organizations.get
resourcemanager.organizations.getIamPolicy
resourcemanager.projects.get
resourcemanager.projects.getIamPolicy
resourcemanager.projects.list
gcloud auth login
gcloud auth application-default login
./get-all-permissions-v3.0.sh
./merge-all-permissions-v3.0.sh