---
title: "ezgh projects grant"
description: "Give principals a project's own full or read-only access."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh projects grant

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
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 &lt;type&gt;:&lt;who&gt;=&lt;level&gt;, 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, "&lt;project&gt; full access" and "&lt;project&gt; 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`](/cli/reference/projects).

## Examples

```sh
ezgh projects grant web --grant user:bob@acme.test=full --grant group:Readers=readOnly
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--grant` | string, repeatable |  | give a principal the project's own access: &lt;type&gt;:&lt;who&gt;=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](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/projects-grant/index.mdx
