PHP Google\Cloud\Iam Iam::setPolicy - 1 examples found. These are the top rated real world PHP examples of Google\Cloud\Iam\Iam::setPolicy extracted from open source projects. You can rate examples to help us improve the quality of examples.
Bindings with invalid roles, or non-existent members will raise a server
error.
Example:
$oldPolicy = $iam->policy();
$oldPolicy['bindings'][0]['members'] = 'user:test@example.com';
$policy = $iam->setPolicy($oldPolicy);