Hi! π We are doing a big documentation refresh. Help us improve - what's missing or could be better? Let us know! Join the Discord channel or simply send an email!
Create and manage custom roles with granular permissions for your Enterprise organization in CodeRabbit.
This feature is available exclusively as part of the Enterprise plan. Please refer to our pricing page for more information about our plans and features.
CodeRabbit includes three built-in system roles β Admin, Member, and Billing Admin β that cover common access patterns. With Custom RBAC (Role-Based Access Control), Enterprise customers can go further by defining additional roles with specific permissions tailored to their organizationβs structure and workflows. Each custom role controls access to individual resources at one of three levels: no access, read only, or read and write. Once created, custom roles are available across your organization, including in Team Management for per-user assignment.
Custom role creation
Create roles with a unique name and an optional description to reflect their purpose in your organization.
Granular permissions
Control access to each resource independently using No access, Read only, or Read and Write β giving you precise control over what each role can do.
Default role assignment
Designate any custom role as the default so new users joining your organization are automatically assigned the right level of access.
Team Management integration
Assign custom roles to individual users directly from the Team Management page, alongside the built-in system roles.
Navigation paths for Roles and permissions settings:
Go to your organization settings and open the Roles and permissions page. You will see a table listing all roles in your organization.
2
Review the roles table
The table displays the following columns for each role:
Role name β the display name of the role
Role type β labeled System for built-in roles (Admin, Member, Billing Admin) or Custom for user-created roles
Description β optional text describing the roleβs purpose
Number of assigned users β how many users currently hold this role
Default role indicator β a star (β ) icon marks the role that is automatically assigned to new users
3
Search for a role
Use the Search field at the top of the table to filter roles by name or description. Results update as you type, making it easy to find a specific role in large organizations.
4
Filter by role type
Use the Filter dropdown to narrow the list by type:
All (default) β shows every role
System β shows only the built-in Admin, Member, and Billing Admin roles
Go to your organization settings and open the Roles and permissions page.
2
Open the creation form
Click the Create role button in the top-right corner of the page. A creation form will appear.
3
Enter a name
Enter a Name for the role. This field is required. Role names must be unique within your organization β if the name is already taken, a validation message will appear and the form cannot be submitted until you choose a different name.
4
Add an optional description
Optionally enter a Description to explain what the role is for and who should be assigned to it. A good description helps administrators understand the roleβs purpose at a glance.
5
Save the role
Click Save. The new role is created and automatically populated with the default member role permissions as a baseline.
6
Configure permissions
After saving, you are taken to the role detail page where you can adjust the permission matrix to match the access level intended for this role. See Edit role permissions below.
Duplicating a role copies all of its permission settings into a new role, saving time when you need a role that is similar to an existing one.
1
Locate the role to duplicate
On the Roles and permissions page, find the role you want to duplicate in the table.
2
Open the Actions menu
Click the Actions menu (the three-dot β― icon) at the far right of the roleβs row.
3
Select Duplicate
Select Duplicate from the dropdown menu. A new role is immediately created with all the same permissions as the original. The new roleβs name is prefixed with βCopy ofβ followed by the original role name.
4
Rename and adjust
Click the duplicated roleβs name to open its detail page. Update the name, description, and any permissions as needed.
Each resource can be configured independently. Select the access level that applies to this role for each resource:
Resource
No access
Read only
Read and Write
Organization settings
β
β
β
Repository settings
β
β
β
Reports
β
β
β
Learnings
β
β
β
Team Management
β
β
β
Billing
β
β
β
API access
β
β
β
System roles β Admin, Member, and Billing Admin β are view-only and cannot be edited. Their permission matrices are displayed for reference but all controls are disabled.
The default role is automatically assigned to new users when they join your organization, ensuring they have the appropriate baseline access without requiring manual role assignment.
1
Navigate to Roles and permissions
Go to your organization settings and open the Roles and permissions page.
2
Open the Actions menu
Click the Actions menu (the three-dot β― icon) next to the role you want to set as the default.
3
Set as default
Select Set as default from the dropdown menu. The role now displays a star (β ) icon in the Default column of the table, confirming it is the active default role.
4
Remove default status
To remove the default designation without assigning a new default, click the Actions menu next to the current default role and select Remove as default.
Only one role can be the default at a time. Setting a new role as default automatically removes the default designation from the previously assigned role.
Deletion is blocked when one or more users are assigned to the role. All users must be reassigned to a different role before deletion is possible. Additionally, if the role being deleted is currently set as the default role, its default status is automatically removed before deletion proceeds.
Reassign all users to another role before attempting to delete a custom role. Check the Assigned users count in the table β if it is greater than 0, navigate to Team Management to reassign those users first.
1
Navigate to Roles and permissions
Go to your organization settings and open the Roles and permissions page.
2
Verify no users are assigned
Check the Assigned users count in the row for the role you want to delete. If the count is greater than 0, go to Team Management and reassign those users to a different role before continuing.
3
Open the Actions menu
Click the Actions menu (the three-dot β― icon) next to the role.
4
Select Delete
Select Delete from the dropdown menu.
5
Confirm deletion
A confirmation dialog will appear asking you to confirm the deletion. Confirm to permanently remove the role. This action cannot be undone.
The Team Management page supports both system and custom roles in the role selector, allowing you to assign any role β built-in or custom β to individual users.
1
Navigate to Team Management
Go to your organization settings and open the Team Management page.
2
Locate the user
Find the user whose role you want to change in the members list. Use the search field or scroll through the list to locate them.
3
Open the Role dropdown
Click the Role dropdown next to the userβs name. The dropdown displays all available roles β both system roles (Admin, Member, Billing Admin) and any custom roles you have created.
4
Select the new role
Select the desired role from the dropdown. The change is applied immediately using an optimistic update, so the UI reflects the new role right away.
5
Handle errors
If the update fails (for example, due to a permissions issue or network error), the role assignment is automatically rolled back to the previous value and an error message is displayed. Retry the change or contact your administrator if the problem persists.
Filter members by role: Use the Role filter dropdown in the members list header to display only users assigned to a specific role. This filter includes custom roles, making it easy to audit who has been assigned each custom role in your organization.