Remove a role from a member in a project. The member can be either a human user or a service account.
EXAMPLES
To remove the role "pr-test-role" for user "test-user@example.com" with IdP prefix "fop" in project "iam-test", run:
gdcloud projects remove-iam-policy-binding iam-test --role=pr-test-role --member=user:fop-test-user@example.com
To remove the role "pr-test-role" for service account "test-sa" of project "test-sa-project" in the project "iam-test", run:
gdcloud projects remove-iam-policy-binding iam-test --role=pr-test-role --member=serviceAccount:test-sa-project:test-sa
REQUIRED FLAGS
--member string Member to remove the binding for, defined by either user:EMAIL or serviceAccount:SERVICE_ACCOUNT_PROJECT:SERVICE_ACCOUNT_NAME. The email should contain the IdP prefix for the user.
--role string Role name to be removed from the member.
GDCLOUD WIDE FLAGS
These flags are available to all commands: --configuration, --format, --help, --project, --quiet.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-12 UTC."],[[["This command `gdcloud projects remove-iam-policy-binding` removes a specified role from a given member within a project."],["The member can be a human user, indicated by `user:EMAIL`, or a service account, indicated by `serviceAccount:SERVICE_ACCOUNT_PROJECT:SERVICE_ACCOUNT_NAME`."],["The user's email must include the Identity Provider (IdP) prefix."],["The command requires two flags: `--member` to specify the user or service account and `--role` to specify the role to be removed."]]],[]]