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
OptionDescription
--typePrincipal type: user (default) or group

Available Roles

RoleCapabilities
viewerRead-only access to all pages in the space
editorCreate, edit, and delete pages
adminFull 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>