Create custom permission groups
Build groups with specific permissions: only available on the Enterprise plan.
- Go to Settings > Permission groups.
- Click Create permission group.
- Enter a name and description.
- Set the group’s permissions inline. Configure organization-level permissions for the Organization and All projects columns, plus project-specific and object-level permissions in the Project-specific permissions section.
- Click Create.
Manage access to a permission group
Control who can administer a permission group itself: who can view it, edit its permissions, rename it, or grant others access to it. This is separate from the permissions the group grants its members. For the distinction, see Permissions vs. Manage access. only available on the Enterprise plan.
- Go to Settings > Permission groups.
- Find the group in the permission groups list, then click the more options menu () on its row.
- Select Manage access.
- In the Object permissions dialog, select the tab for who you want to grant access to: Permission groups, Members, or Service accounts.
- Search for the user, group, or service account, then click the edit icon next to it.
- Select the permissions to grant on the group:
- Read: View the group and its permissions.
- Update: Edit the group’s name, description, and permissions.
- Delete: Delete the group.
- Manage access: Grant and revoke access to the group (super-user ability).
- Click Save.
Set organization permissions
Grant organization-level permissions to custom groups:- Go to Settings > Permission groups.
- Find the group in the permission groups list, then click Permissions on its row.
-
Select organization-level permissions:
- Manage settings: Change organization configuration.
- Manage members: Invite users.
- Remove members: Remove users (organizations must have at least one member).
- Manage access: Grant and revoke permissions (super-user ability).
-
Select permissions for all projects:
- Read: View all projects and their resources.
- Create: Create experiments, logs, datasets in all projects.
- Update: Modify existing resources in all projects.
- Delete: Remove resources from all projects.
- Manage access: Grant permissions on all projects.
- (Optional) Select project-specific and object-level permissions in the Project-specific permissions section. This section lets you set project-specific and object-level permissions directly from the permission group dialog, without going to each project’s Project permissions settings.
- Click Save.
Set project permissions
Specify a group’s permissions for a particular project and its objects:- Create a custom permission group.
- In your project, go to Settings > Project permissions.
- Search for your group.
- Click the pencil icon next to the group.
- Select project permissions:
- Read: View project and its resources.
- Create: Create experiments, logs, datasets.
- Update: Modify existing resources.
- Delete: Remove resources.
- Manage access: Grant permissions on this project.
- Select object-level permissions for experiments, datasets, logs, prompts, playgrounds, functions, scorers, and classifiers:
- Create: Create the object.
- Read: View the object.
- Update: Modify the object.
- Delete: Remove the object.
- Manage access: Grant permissions on this object.
- Click Save.
Manage group membership
Add or remove users from permission groups:- Go to Settings > Permission groups.
- Find the group in the permission groups list.
- Click Members.
- To add: Search for users and click +.
- To remove: Click the x next to a user’s name.
Use service accounts
Service accounts provide credentials for system integrations:- Go to Settings > Service tokens.
- Click + Service token.
- Enter service account name.
- Assign permission groups or grant specific permissions.
- Click Create.
- Copy and save the auto-generated service token somewhere safe and accessible. For security reasons, you will not be able to view it again. If you lose the service token, you must create a new one.
- Use the token like an API key in SDK or API calls.
Only organization owners can create service tokens, at Settings > Service tokens in the Braintrust UI or by calling
POST /v1/service_token with a service token that has organization-owner permissions. User API keys cannot be used to create service tokens.Users with permission to add organization members can create service accounts by calling PATCH /v1/organization/members. To also create an initial service token, include token_name (this requires authenticating with a service token that has organization-owner permissions).For hybrid deployments, you must configure a service token for the data plane to enable features like data retention. See Data plane manager for more details.
Programmatic access control
To automate the creation of permission groups and their access control rules, use the Braintrust API. See the API reference for groups and permissions.Next steps
- Review the permissions reference to understand what each permission grants.
- Set up automations with service accounts.
- API reference for programmatic access control.