Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/admin/permissions/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ You can call `setRepositoryPermissionsForUsers` repeatedly to set permissions fo

## Setting sub-repository permissions for users

> NOTE: If a user has no sub-repo permissions set for a specific repository (assuming that they have general access to the repository), they will have access to the entire repository contents.

Sourcegraph supports permissions on a per-file/directory basis.

To enable the sub-repo permissions API, add the following to the [site configuration](/admin/config/site_config):
Expand Down
Loading