ezgh projects grant [project] --grant <type>:<who>=full|readOnly… [flags]Give users, bots, groups, or EZGH SSO users or groups the project’s own access (default: the active project): full (everything in the project) or readOnly (view everything in it, change nothing). Write each --grant as <type>:<who>=<level>, as for ezgh projects create; at most 10. It needs projects.get on the project and policies.attach. Principals that already have that access keep it.
The access is two policies that belong to the project, “<project> full access” and “<project> read-only”: they follow the project’s name, can’t be edited, and are deleted with the project. This prints them; remove someone’s access by detaching one, e.g. ezgh iam policies detach <policy ID> --user bob@acme.test.
Part of ezgh projects.
Examples
ezgh projects grant web --grant user:bob@acme.test=full --grant group:Readers=readOnlyFlags
| Flag | Type | Default | Description |
|---|---|---|---|
--grant |
string, repeatable | give a principal the project’s own access: <type>:<who>=full|readOnly, where type is user, bot, group, ssoUser or ssoGroup and who is an ID, email (users), slug or name, or me (repeatable) |
This command also takes the global flags.