Granular admin permissions via RBAC
Administrator privileges can now be delegated through granular RBAC permissions, you can grant users only the admin capabilities they need without making them full administrators.

Administrator privileges can now be delegated through granular RBAC permissions, you can grant users only the admin capabilities they need without making them full administrators.
Administration on Sourcegraph has historically been an all-or-nothing decision: either a user was an administrator and could do everything, or they weren't and couldn't access any admin surface. We've replaced this with a set of fine-grained RBAC permissions that map onto distinct admin responsibilities. Now you can grant users exactly the access they need and nothing more.
Eight new permission namespaces are available in the role editor (Site admin → Users & auth → Roles), each grantable independently to any role.
site-admin:sudo-scoped tokens.Each namespace exposes READ and WRITE actions (where applicable) so that you can give someone visibility into an admin surface without granting them the ability to change it.
Several of these are flagged as high-trust permissions in the role editor — for example, ADVANCED_CONFIG#WRITE, USER_MANAGEMENT#WRITE, ACCESS_TOKENS#WRITE, NOTIFICATIONS#WRITE, OOB_MIGRATIONS#WRITE, INTEGRATION_MANAGEMENT#WRITE, and REPO_MANAGEMENT#READ — because the capability they grant is effectively equivalent to administrator access for that area of the product. Treat them accordingly when assigning roles.
Administrators continue to receive every permission by default, so existing deployments behave exactly as they did before the change. New permissions added by an upgrade are granted to the built-in SITE_ADMINISTRATOR role automatically, and a small set of grandfathering rules ensure that newly restrictive permissions don't break workflows on older installs.
To delegate admin capabilities, create or edit a role and check the permissions for the relevant namespace. Users assigned that role will gain access to exactly the admin endpoints those permissions cover — and nothing else.
Here are a few roles that may be useful for your Sourcegraph instance:
REPO_MANAGEMENT#READ, REPO_MANAGEMENT#WRITE. Can connect code hosts, add/remove repositories, inspect mirror state, and trigger reclone/reindex operations without seeing user data or site configuration.USER_MANAGEMENT#READ, REPO_MANAGEMENT#READ, NOTIFICATIONS#READ. Read-only access to the surfaces needed to triage customer tickets without the ability to change anything.USER_MANAGEMENT#READ, USER_MANAGEMENT#WRITE, ACCESS_TOKENS#READ. Owns user, org, and access-request lifecycle; can audit access tokens but cannot mint sudo tokens.INTEGRATION_MANAGEMENT#READ, INTEGRATION_MANAGEMENT#WRITE, NOTIFICATIONS#WRITE. Manages outbound webhooks, Slack, and operational notifications for the instance.OOB_MIGRATIONS#READ, OOB_MIGRATIONS#WRITE, ADVANCED_CONFIG#READ. Can drive out-of-band migrations during upgrades and inspect site configuration without modifying it.ENTITLEMENTS#READ, ENTITLEMENTS#WRITE, USER_MANAGEMENT#READ. Manages entitlements and user grants without broader admin reach.#READ permission and no #WRITE. Useful for compliance reviewers who need full visibility into the admin surface without any ability to make changes.