How to Test Iam Permissions in GCP - for the current user

From cloud shell

curl -X POST \
-H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \
-H "Content-Type: application/json; charset=utf-8" \
-d @request.json \
https://cloudresourcemanager.googleapis.com/v1/projects/project-id:testIamPermissions

From a Browser

POST https://cloudresourcemanager.googleapis.com/v1/projects/project-id:testIamPermissions

Summary

This is a quick recipe on how to test your current user's IAM permissions on GCP.

 
Need an experienced Cloud Professional to help out with your Public Cloud Strategy? Set up a time with Anuj Varma.