// Gets the project"s policy and prints all members with the "Log Writer" role.
policy = get_policy(crm_service, project_id)
binding = next(bfor b in policy["bindings"] if b["role"] == role)
print(f"Role: {(binding["role"])}")
print("Members: ")
for m in binding["members"]:
print(f"[{m}]")
// Removes the member from the "Log Writer" role.
modify_policy_remove_member(crm_service, project_id, role, member)
def initialize_service():