Control who can read, write, or administer specific folders and documents using user permissions and group permissions.
Knowledge Stack uses a path-based permission system. You grant access to a path — a folder or a document — and that access applies to everything nested under it. Two mechanisms exist: user permissions (direct, per-user grants) and group permissions (bulk grants via tenant groups).
User permissions take precedence over group permissions. If a user has an explicit user permission on a path, that capability is used regardless of what any of their groups have.
A tenant group is a named collection of users within a tenant. Assigning a permission to a group grants every member of that group the same access — without needing to manage individual user permissions.
Permissions apply to the path they are assigned to and all of its descendants. Granting read on a folder automatically covers every document and sub-folder inside it.
/Product Docs ← grant "read" here /Engineering ← automatically readable /API Spec v2.pdf ← automatically readable /Design ← automatically readable
If you need to restrict access to a specific sub-path, grant a narrower permission at that level. More specific paths win over broader ones.
Start with group permissions for standard access patterns, then use user permissions for exceptions. This keeps your permission set small and easy to audit.
Find the path part for the target folder or document
GET https://api-staging.knowledgestack.ai/v1/path-parts
Identify the id of the folder or document you want to protect.
2
Choose your approach
For a single user: use POST /v1/user-permissions
For a team: create or reuse a group, then use POST /v1/tenant-groups/{group_id}/permissions
3
Create the permission
POST https://api-staging.knowledgestack.ai/v1/user-permissionsContent-Type: application/json{ "user_id": "usr_abc123", "path_part_id": "pth_xyz789", "capability": "write"}
4
Verify access
List the permissions on the path to confirm the grant was applied:
GET https://api-staging.knowledgestack.ai/v1/user-permissions
Tenant admins bypass path-based permissions and have access to all content in the tenant. Assign the admin role only to users who need unrestricted access.