Skip to content

Add a note explaining that no sub-repo perms = sub-repo perms disabled #1090

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 17, 2025
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