# ocloud grant

Source: https://olef.dev/docs/reference/ocloud/grant

Generated from **ocloud 3.17.3**. [All ocloud commands](https://olef.dev/docs/reference/ocloud) · [Olef Cloud overview](https://olef.dev/docs/cloud/overview) · [`olef` commands](https://olef.dev/docs/reference/commands)

Give, change, or remove a grant on an inbox, project, workspace, or host pool

Global options (`--org`, `--project-root`, `--quiet`, `--redact`) apply across commands; see the [`ocloud` command catalog](https://olef.dev/docs/reference/ocloud#global-options).

## ocloud grant

Give, change or remove one grant on an inbox, project, workspace or host pool

```bash
ocloud grant --help
```

| Argument | Description |
| --- | --- |
| `<resource>` | **Required.** What to grant on: inbox, project or workspace |
| `<id>` | **Required.** The inbox's address or id, the project's id or slug, or the workspace's id |
| `<principal>` | **Required.** Who: `user:<id\|email>` (or a bare email), `team:<id\|slug>`, `agent:<id>`, `org_members` or `anyone` (the last two on inboxes) |
| `--role` | The role: admin, developer or viewer on a project; collaborator or watcher on a workspace |
| `--perms` | Inbox permissions, comma-separated: discover, write, read, consume, approve, manage |
| `--secrets` | An agent's project secrets by name, comma-separated (empty removes them) |
| `--expires-at` | When an inbox grant ends (RFC 3339, like 2026-12-01T00:00:00Z) |
| `--rm` | Remove the grant instead |
