Skip to content

Commit 9a0e403

Browse files
Update modify_policy_remove_member.py
1 parent 36066a8 commit 9a0e403

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

iam/cloud-client/snippets/modify_policy_remove_member.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,13 @@ def modify_policy_remove_member(
2222
project_id: str, role: str, member: str
2323
) -> policy_pb2.Policy:
2424
"""
25-
Remove a member from certain role in project policy.
25+
Remove a principal from certain role in project policy.
2626
2727
project_id: ID or number of the Google Cloud project you want to use.
28-
role: role to which member need to be added.
29-
member: The principals requesting access.
30-
31-
Possible format for member:
32-
* user:{emailid}
33-
* serviceAccount:{emailid}
34-
* group:{emailid}
35-
* deleted:user:{emailid}?uid={uniqueid}
36-
* deleted:serviceAccount:{emailid}?uid={uniqueid}
37-
* deleted:group:{emailid}?uid={uniqueid}
38-
* domain:{domain}
28+
role: role to revoke.
29+
member: The principal to revoke access from.
30+
31+
For principal ID formats, see https://cloud.google.com/iam/docs/principal-identifiers
3932
"""
4033
policy = get_project_policy(project_id)
4134

0 commit comments

Comments
 (0)