Permissions
Manage space-level roles and page attachments.
Permissions
Control who can view, edit, or administer documentation spaces using role-based access control.
Get permissions
List all roles assigned to a space.
bash
riven permissions get <space-id>Set a role
Assign a role to a user or group for a space.
bash
# Set a user as editor
riven permissions set <space-id> <user-id> editor
# Set a group as viewer
riven permissions set <space-id> <group-id> viewer --type group
# Set a user as admin
riven permissions set <space-id> <user-id> admin| Option | Description |
|---|---|
--type | Principal type: user (default) or group |
Available Roles
| Role | Capabilities |
|---|---|
viewer | Read-only access to all pages in the space |
editor | Create, edit, and delete pages |
admin | Full control including permissions management |
Remove a role
bash
riven permissions remove <space-id> <user-id>Attachments
Manage file attachments on documentation pages.
List attachments
bash
riven attachments list <page-id>