Sourcegraph DocsSourcegraph Docs
Changelog↗
Theme
  1. Docs
  2. admin
  3. access-control
  4. batch-changes

Access control for Batch Changes

Granular controls for who can access Batch Changes can be configured by site admins by tuning the roles assigned to users and the permissions granted to those roles. This page describes the permission types available for Batch Changes, and whether they are granted by default to the User system role. All permissions are granted to the Site Administrator system role by default.

NameDescriptionGranted to User by default?
batch_changes:read
  • User can view batch changes, changesets, and batch specs.
  • User can view bulk operations and batch spec workspaces.
✓
batch_changes:write
  • User can create, update, close, or delete batch changes.
  • User can create, execute, and apply batch specs.
  • User can perform bulk operations on changesets such as publishing, commenting on, closing, or merging them.
✓
batch_changes:agent_read
  • User can view agentic batch changes, including agents, their conversations, and results.
  • Requires batch_changes:read as well.
✓
batch_changes:agent_write
  • User can create, run, and modify agentic batch changes.
  • Requires batch_changes:write as well.
✓

These permissions gate access to the Batch Changes feature as a whole. Within a batch change, what a user can see and do is further limited by the batch change's permission levels and by their repository permissions. Merging changesets can additionally be restricted to site admins with the batchChanges.restrictMergeToAdmins site configuration property.

The site configuration property batchChanges.restrictToAdmins is deprecated and has no effect. To restrict Batch Changes to site admins, remove the batch_changes:read and batch_changes:write permissions from the User role instead.

On this page

  1. Access control for Batch Changes


Edit this page on GitHub
View as Markdown