🐰 New: Triage — a self-updating cross-repository queue that prioritizes pull requests by value and risk, so you always know what to review next. Explore Triage →
Create and manage custom roles with granular permissions for your Enterprise organization in CodeRabbit.
Overview
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:
Cloud:/settings/roles-permissions
Self-hosted:/settings/account/roles-permissions
View roles and permissions
1
Navigate to Roles and permissions
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
Custom — shows only user-created custom roles
Create a custom role
1
Navigate to Roles and permissions
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.
Duplicate an existing role
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.
Edit role permissions
Role detail page
When you open a custom role by clicking its name on the Roles and permissions page, the detail page displays the following metadata:
Assigned users — the number of users currently assigned to this role
Role type — System or Custom
Created by — the user who created the role
Created on — the date the role was created
Permission matrix
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
✓
✓
—
The Learnings row controls both dashboard and public API access. Read only allows viewing and exporting Learnings. Read and Write also grants learning:write, which allows API clients to update and delete Learnings.
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.
Save or discard changes
1
Navigate to the role detail page
On the Roles and permissions page, click the name of the custom role you want to edit. The role detail page opens, showing the permission matrix.
2
Set access levels
For each resource in the permission matrix, select the desired access level using the radio buttons:
No access — the role cannot see or interact with this resource
Read only — the role can view this resource but cannot make changes
Read and Write — the role can view and modify this resource
3
Apply or cancel
Click Save to apply your changes. Click Discard to cancel all unsaved changes and revert to the previously saved state.
Set a default role
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.
Delete a custom 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.
Assign roles in Team Management
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.
Only organization members can be assigned custom roles. Non-org users may still appear in Team Management, but custom roles are not available for them.
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.
API reference
Manage custom roles through the API, the CLI, or the hosted MCP server. These operations work for GitHub Cloud organizations. For API and CLI calls, use a user key or a workspace API token that selects the organization. The hosted MCP server uses OAuth sign-in instead of a key. The Enterprise plan and your role’s permissions apply.
What’s next
Roles overview
Learn about the built-in Admin, Member, and Billing Admin roles and how they differ from custom roles.
Seat assignment
Manage user seats and access in your organization.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"CodeRabbit","description":"Guides for CodeRabbit, the trust layer for agentic software development: review, prioritize, understand, and secure changes across pull requests, your IDE, CLI, and team chat.","colors":{"primary":"#FF570A","light":"#FF570A","dark":"#FF570A"},"logo":{"light":"https://mintcdn.com/coderabbit/qAZa_d7FrwPO_w-O/coderabbit-logo-light.svg?fit=max\u0026auto=format\u0026n=qAZa_d7FrwPO_w-O\u0026q=85\u0026s=d2bf9e91be0e760ec9cb468676fa6ab6","dark":"https://mintcdn.com/coderabbit/qAZa_d7FrwPO_w-O/coderabbit-logo-dark.svg?fit=max\u0026auto=format\u0026n=qAZa_d7FrwPO_w-O\u0026q=85\u0026s=feeb1667ed4a2768a15b271f130395c0","href":"/"},"favicon":{"light":"https://mintcdn.com/coderabbit/qAZa_d7FrwPO_w-O/favicon-light.svg?fit=max\u0026auto=format\u0026n=qAZa_d7FrwPO_w-O\u0026q=85\u0026s=c0b0fbea23b48949cc631606f2a30022","dark":"https://mintcdn.com/coderabbit/qAZa_d7FrwPO_w-O/favicon-dark.svg?fit=max\u0026auto=format\u0026n=qAZa_d7FrwPO_w-O\u0026q=85\u0026s=4db7fc04860b6907c7f236f05b37f5c6"},"api":{"openapi":"openapi.json","playground":{"display":"simple"},"examples":{"languages":["curl","python","javascript"]}},"navbar":{"primary":{"type":"button","label":"Sign up","href":"https://app.coderabbit.ai/login?free-trial="}},"footer":{"socials":{"x":"https://x.com/coderabbitai","linkedin":"https://www.linkedin.com/company/coderabbitai","github":"https://github.com/coderabbitai","discord":"https://discord.gg/GsXnASn26c"},"links":[{"header":"Resources","items":[{"label":"Blog","href":"https://coderabbit.ai/blog"},{"label":"Pricing","href":"https://www.coderabbit.ai/pricing"},{"label":"Changelog","href":"https://docs.coderabbit.ai/changelog"},{"label":"Support knowledge base","href":"https://kb.coderabbit.ai"}]},{"header":"Quick links","items":[{"label":"Schedule a demo","href":"https://www.coderabbit.ai/contact-us/sales"},{"label":"Get support","href":"https://docs.coderabbit.ai/support"},{"label":"Status page","href":"https://status.coderabbit.ai"},{"label":"Terms of service","href":"https://www.coderabbit.ai/terms-of-service"},{"label":"Privacy Policy","href":"https://coderabbit.ai/privacy-policy"}]}]},"seo":{"metatags":{"description":"Guides for CodeRabbit, the trust layer for agentic software development: review, prioritize, understand, and secure changes across pull requests, your IDE, CLI, and team chat.","og:type":"website","og:site_name":"CodeRabbit Documentation","og:locale":"en_US","twitter:card":"summary_large_image","twitter:site":"@coderabbitai","canonical":"https://docs.coderabbit.ai"}},"fonts":{"heading":{"family":"Geist"},"body":{"family":"Geist"}},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","latex":true},"integrations":{"gtm":{"tagId":"GTM-5BWLXJRC"},"posthog":{"apiKey":"phc_6fDZRN9hYzB83I7Fk2GNHYqas4WMIdGBQ58aZ6EOZR0"}},"banner":{"content":"🐰 New: **Triage** — a self-updating cross-repository queue that prioritizes pull requests by value and risk, so you always know what to review next. [Explore Triage →](/triage)","dismissible":true,"type":"info","color":{"light":"#171717","dark":"#171717"}},"errors":{"404":{"redirect":false,"title":"Page Not Found. Sorry!","description":"Try **Search** or **Ask AI** to find what you're looking for.\nPress \u003ckbd>⌘K\u003c/kbd> (Mac) or \u003ckbd>Ctrl+K\u003c/kbd> (Windows/Linux) to open the search.\n\n\nNeed help? [Get support](/support)."}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"Quickstart","icon":"rocket","hidden":false,"href":"/getting-started/quickstart"},{"anchor":"Blog","icon":"pen-line","hidden":true,"href":"https://coderabbit.ai/blog"},{"anchor":"Changelog","icon":"history","href":"/changelog"},{"anchor":"Support","icon":"life-buoy","href":"/support"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/coderabbit"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"coderabbit","hasAudioNarration":false,"actualSubdomain":"coderabbit","customDomains":["docs.coderabbit.ai"],"gitSource":{"type":"github","owner":"coderabbitai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b023a6cd48387065b1ff60b","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API and MCP","count":193},{"language":"default","tag":"API reference","count":179},{"language":"default","tag":"Review","count":148},{"language":"default","tag":"Tools","count":61},{"language":"default","tag":"Per-tool guides","count":59},{"language":"default","tag":"Admin","count":56},{"language":"default","tag":"Agents","count":49},{"language":"default","tag":"Coding Agent","count":48},{"language":"default","tag":"Configuration","count":46},{"language":"default","tag":"Languages","count":39}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"management/custom-roles","slug":"/management/custom-roles","pageMetadata":{"title":"Custom roles and permissions","description":"Create and manage custom roles with granular permissions for your Enterprise organization in CodeRabbit.","href":"/management/custom-roles"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create and manage custom roles with granular permissions for your Enterprise organization in CodeRabbit.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const AdminRoleBadge=({tip=`This feature requires an organization owner, an admin role or the corresponding permission. Regular Members do not have access.`,title=`Admin Only`,cta=`View roles`,href=`/management/roles`,disabled=false})=>{const{Badge,Tooltip}=_provideComponents()||{};if(!Badge)_missingMdxReference(`Badge`,true);if(!Tooltip)_missingMdxReference(`Tooltip`,true);return _jsx(Tooltip,{tip,cta,href,children:_jsx(Badge,{icon:`lock`,color:`orange`,disabled:disabled||undefined,children:title})})};const EnterprisePlanBadge=({tip=`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.`,title=`Enterprise Plan`,cta=`Read more`,href=`https://coderabbit.ai/pricing`,disabled=false})=>{const{Badge,Tooltip}=_provideComponents()||{};if(!Badge)_missingMdxReference(`Badge`,true);if(!Tooltip)_missingMdxReference(`Tooltip`,true);return _jsx(Tooltip,{tip,cta,href,children:_jsx(Badge,{icon:`building-2`,disabled:disabled||undefined,children:title})})};function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,CardGroup,Heading,Info,Step,Steps,Table,Tip,Warning,_MdxComponentBoundary}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_MdxComponentBoundary,{name:`EnterprisePlanBadge`,children:_jsx(EnterprisePlanBadge,{})}),`\n`,_jsx(_MdxComponentBoundary,{name:`AdminRoleBadge`,children:_jsx(AdminRoleBadge,{tip:`Members do not have access to Roles and permissions. Admin and Billing Admin users can view the page. Only Admin users can create, edit, delete, or set default custom roles.`})}),`\n`,_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[`CodeRabbit includes three built-in system roles — `,_jsx(_components.strong,{children:`Admin`}),`, `,_jsx(_components.strong,{children:`Member`}),`, and `,_jsx(_components.strong,{children:`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.`]}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Custom role creation`,icon:`circle-plus`,children:_jsx(_components.p,{children:`Create roles with a unique name and an optional description to reflect their purpose in your organization.`})}),_jsx(Card,{title:`Granular permissions`,icon:`user-lock`,children:_jsxs(_components.p,{children:[`Control access to each resource independently using `,_jsx(_components.strong,{children:`No access`}),`, `,_jsx(_components.strong,{children:`Read only`}),`, or `,_jsx(_components.strong,{children:`Read and Write`}),` — giving you precise control over what each role can do.`]})}),_jsx(Card,{title:`Default role assignment`,icon:`star`,children:_jsx(_components.p,{children:`Designate any custom role as the default so new users joining your organization are automatically assigned the right level of access.`})}),_jsx(Card,{title:`Team Management integration`,icon:`users`,children:_jsx(_components.p,{children:`Assign custom roles to individual users directly from the Team Management page, alongside the built-in system roles.`})})]}),`\n`,_jsxs(Info,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Navigation paths for Roles and permissions settings:`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Cloud:`}),` `,_jsx(_components.code,{children:`/settings/roles-permissions`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Self-hosted:`}),` `,_jsx(_components.code,{children:`/settings/account/roles-permissions`})]}),`\n`]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`view-roles-and-permissions`,children:`View roles and permissions`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Navigate to Roles and permissions`,children:_jsxs(_components.p,{children:[`Go to your organization settings and open the `,_jsx(_components.strong,{children:`Roles and permissions`}),` page. You will see a table listing all roles in your organization.`]})}),_jsxs(Step,{title:`Review the roles table`,children:[_jsx(_components.p,{children:`The table displays the following columns for each role:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Role name`}),` — the display name of the role`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Role type`}),` — labeled `,_jsx(_components.strong,{children:`System`}),` for built-in roles (Admin, Member, Billing Admin) or `,_jsx(_components.strong,{children:`Custom`}),` for user-created roles`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Description`}),` — optional text describing the role’s purpose`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Number of assigned users`}),` — how many users currently hold this role`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Default role indicator`}),` — a star (★) icon marks the role that is automatically assigned to new users`]}),`\n`]})]}),_jsx(Step,{title:`Search for a role`,children:_jsxs(_components.p,{children:[`Use the `,_jsx(_components.strong,{children:`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.`]})}),_jsxs(Step,{title:`Filter by role type`,children:[_jsxs(_components.p,{children:[`Use the `,_jsx(_components.strong,{children:`Filter`}),` dropdown to narrow the list by type:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`All`}),` (default) — shows every role`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`System`}),` — shows only the built-in Admin, Member, and Billing Admin roles`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Custom`}),` — shows only user-created custom roles`]}),`\n`]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`create-a-custom-role`,children:`Create a custom role`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Navigate to Roles and permissions`,children:_jsxs(_components.p,{children:[`Go to your organization settings and open the `,_jsx(_components.strong,{children:`Roles and permissions`}),` page.`]})}),_jsx(Step,{title:`Open the creation form`,children:_jsxs(_components.p,{children:[`Click the `,_jsx(_components.strong,{children:`Create role`}),` button in the top-right corner of the page. A creation form will appear.`]})}),_jsx(Step,{title:`Enter a name`,children:_jsxs(_components.p,{children:[`Enter a `,_jsx(_components.strong,{children:`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.`]})}),_jsx(Step,{title:`Add an optional description`,children:_jsxs(_components.p,{children:[`Optionally enter a `,_jsx(_components.strong,{children:`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.`]})}),_jsx(Step,{title:`Save the role`,children:_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Save`}),`. The new role is created and automatically populated with the default member role permissions as a baseline.`]})}),_jsx(Step,{title:`Configure permissions`,children:_jsxs(_components.p,{children:[`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 `,_jsx(_components.a,{href:`#edit-role-permissions`,children:`Edit role permissions`}),` below.`]})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`duplicate-an-existing-role`,children:`Duplicate an existing role`}),`\n`,_jsx(_components.p,{children:`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.`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Locate the role to duplicate`,children:_jsxs(_components.p,{children:[`On the `,_jsx(_components.strong,{children:`Roles and permissions`}),` page, find the role you want to duplicate in the table.`]})}),_jsx(Step,{title:`Open the Actions menu`,children:_jsxs(_components.p,{children:[`Click the `,_jsx(_components.strong,{children:`Actions`}),` menu (the three-dot ⋯ icon) at the far right of the role’s row.`]})}),_jsx(Step,{title:`Select Duplicate`,children:_jsxs(_components.p,{children:[`Select `,_jsx(_components.strong,{children:`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 `,_jsx(_components.strong,{children:`“Copy of”`}),` followed by the original role name.`]})}),_jsx(Step,{title:`Rename and adjust`,children:_jsx(_components.p,{children:`Click the duplicated role’s name to open its detail page. Update the name, description, and any permissions as needed.`})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`edit-role-permissions`,children:`Edit role permissions`}),`\n`,_jsx(Heading,{level:`3`,id:`role-detail-page`,children:`Role detail page`}),`\n`,_jsx(_components.p,{children:`When you open a custom role by clicking its name on the Roles and permissions page, the detail page displays the following metadata:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Assigned users`}),` — the number of users currently assigned to this role`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Role type`}),` — `,_jsx(_components.strong,{children:`System`}),` or `,_jsx(_components.strong,{children:`Custom`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Created by`}),` — the user who created the role`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Created on`}),` — the date the role was created`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`permission-matrix`,children:`Permission matrix`}),`\n`,_jsx(_components.p,{children:`Each resource can be configured independently. Select the access level that applies to this role for each resource:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Resource`}),_jsx(_components.th,{children:`No access`}),_jsx(_components.th,{children:`Read only`}),_jsx(_components.th,{children:`Read and Write`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Organization settings`}),_jsx(_components.td,{children:`✓`}),_jsx(_components.td,{children:`✓`}),_jsx(_components.td,{children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Repository settings`}),_jsx(_components.td,{children:`✓`}),_jsx(_components.td,{children:`✓`}),_jsx(_components.td,{children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Reports`}),_jsx(_components.td,{children:`✓`}),_jsx(_components.td,{children:`✓`}),_jsx(_components.td,{children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Learnings`}),_jsx(_components.td,{children:`✓`}),_jsx(_components.td,{children:`✓`}),_jsx(_components.td,{children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Team Management`}),_jsx(_components.td,{children:`✓`}),_jsx(_components.td,{children:`✓`}),_jsx(_components.td,{children:`✓`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Billing`}),_jsx(_components.td,{children:`✓`}),_jsx(_components.td,{children:`✓`}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`API access`}),_jsx(_components.td,{children:`✓`}),_jsx(_components.td,{children:`✓`}),_jsx(_components.td,{children:`—`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`Learnings`}),` row controls both dashboard and public API access. `,_jsx(_components.strong,{children:`Read only`}),` allows viewing and exporting Learnings. `,_jsx(_components.strong,{children:`Read and Write`}),` also grants `,_jsx(_components.code,{children:`learning:write`}),`, which allows API clients to update and delete Learnings.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`System roles — `,_jsx(_components.strong,{children:`Admin`}),`, `,_jsx(_components.strong,{children:`Member`}),`, and `,_jsx(_components.strong,{children:`Billing Admin`}),` — are view-only and cannot be edited. Their permission matrices are displayed for reference but all controls are disabled.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`save-or-discard-changes`,children:`Save or discard changes`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Navigate to the role detail page`,children:_jsxs(_components.p,{children:[`On the `,_jsx(_components.strong,{children:`Roles and permissions`}),` page, click the name of the custom role you want to edit. The role detail page opens, showing the permission matrix.`]})}),_jsxs(Step,{title:`Set access levels`,children:[_jsx(_components.p,{children:`For each resource in the permission matrix, select the desired access level using the radio buttons:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`No access`}),` — the role cannot see or interact with this resource`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Read only`}),` — the role can view this resource but cannot make changes`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Read and Write`}),` — the role can view and modify this resource`]}),`\n`]})]}),_jsx(Step,{title:`Apply or cancel`,children:_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Save`}),` to apply your changes. Click `,_jsx(_components.strong,{children:`Discard`}),` to cancel all unsaved changes and revert to the previously saved state.`]})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`set-a-default-role`,children:`Set a default role`}),`\n`,_jsx(_components.p,{children:`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.`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Navigate to Roles and permissions`,children:_jsxs(_components.p,{children:[`Go to your organization settings and open the `,_jsx(_components.strong,{children:`Roles and permissions`}),` page.`]})}),_jsx(Step,{title:`Open the Actions menu`,children:_jsxs(_components.p,{children:[`Click the `,_jsx(_components.strong,{children:`Actions`}),` menu (the three-dot ⋯ icon) next to the role you want to set as the default.`]})}),_jsx(Step,{title:`Set as default`,children:_jsxs(_components.p,{children:[`Select `,_jsx(_components.strong,{children:`Set as default`}),` from the dropdown menu. The role now displays a star (★) icon in the `,_jsx(_components.strong,{children:`Default`}),` column of the table, confirming it is the active default role.`]})}),_jsx(Step,{title:`Remove default status`,children:_jsxs(_components.p,{children:[`To remove the default designation without assigning a new default, click the `,_jsx(_components.strong,{children:`Actions`}),` menu next to the current default role and select `,_jsx(_components.strong,{children:`Remove as default`}),`.`]})})]}),`\n`,_jsx(Info,{children:_jsx(_components.p,{children:`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.`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`delete-a-custom-role`,children:`Delete a custom role`}),`\n`,_jsx(Info,{children:_jsx(_components.p,{children:`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.`})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Reassign all users to another role before attempting to delete a custom role. Check the `,_jsx(_components.strong,{children:`Assigned users`}),` count in the table — if it is greater than 0, navigate to `,_jsx(_components.strong,{children:`Team Management`}),` to reassign those users first.`]})}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Navigate to Roles and permissions`,children:_jsxs(_components.p,{children:[`Go to your organization settings and open the `,_jsx(_components.strong,{children:`Roles and permissions`}),` page.`]})}),_jsx(Step,{title:`Verify no users are assigned`,children:_jsxs(_components.p,{children:[`Check the `,_jsx(_components.strong,{children:`Assigned users`}),` count in the row for the role you want to delete. If the count is greater than 0, go to `,_jsx(_components.strong,{children:`Team Management`}),` and reassign those users to a different role before continuing.`]})}),_jsx(Step,{title:`Open the Actions menu`,children:_jsxs(_components.p,{children:[`Click the `,_jsx(_components.strong,{children:`Actions`}),` menu (the three-dot ⋯ icon) next to the role.`]})}),_jsx(Step,{title:`Select Delete`,children:_jsxs(_components.p,{children:[`Select `,_jsx(_components.strong,{children:`Delete`}),` from the dropdown menu.`]})}),_jsx(Step,{title:`Confirm deletion`,children:_jsx(_components.p,{children:`A confirmation dialog will appear asking you to confirm the deletion. Confirm to permanently remove the role. This action cannot be undone.`})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`assign-roles-in-team-management`,children:`Assign roles in Team Management`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`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.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Only organization members can be assigned custom roles. Non-org users may still appear in `,_jsx(_components.strong,{children:`Team Management`}),`, but custom roles are not available for them.`]})}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Navigate to Team Management`,children:_jsxs(_components.p,{children:[`Go to your organization settings and open the `,_jsx(_components.strong,{children:`Team Management`}),` page.`]})}),_jsx(Step,{title:`Locate the user`,children:_jsx(_components.p,{children:`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.`})}),_jsx(Step,{title:`Open the Role dropdown`,children:_jsxs(_components.p,{children:[`Click the `,_jsx(_components.strong,{children:`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.`]})}),_jsx(Step,{title:`Select the new role`,children:_jsx(_components.p,{children:`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.`})}),_jsx(Step,{title:`Handle errors`,children:_jsx(_components.p,{children:`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.`})})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Filter members by role:`}),` Use the `,_jsx(_components.strong,{children:`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.`]}),`\n`,_jsx(Heading,{level:`2`,id:`api-reference`,children:`API reference`}),`\n`,_jsxs(_components.p,{children:[`Manage custom roles through the `,_jsx(_components.a,{href:`/api/guides/users-and-seats#create-and-edit-custom-roles`,children:`API`}),`, the `,_jsx(_components.a,{href:`/api/cli`,children:`CLI`}),`, or the `,_jsx(_components.a,{href:`/api/mcp`,children:`hosted MCP server`}),`. These operations work for GitHub Cloud organizations. For API and CLI calls, use a user key or a workspace API token that selects the organization. The hosted MCP server uses OAuth sign-in instead of a key. The Enterprise plan and your role’s permissions apply.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what’s-next`,children:`What’s next`}),`\n`,_jsxs(CardGroup,{cols:1,children:[_jsx(Card,{title:`Roles overview`,icon:`users`,href:`/management/roles`,horizontal:true,children:_jsx(_components.p,{children:`Learn about the built-in Admin, Member, and Billing Admin roles and how they differ from custom roles.`})}),_jsx(Card,{title:`Seat assignment`,icon:`user-check`,href:`/management/seat-assignment`,horizontal:true,children:_jsx(_components.p,{children:`Manage user seats and access in your organization.`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{AdminRoleBadge,EnterprisePlanBadge,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Custom roles and permissions","description":"Create and manage custom roles with granular permissions for your Enterprise organization in CodeRabbit.","href":"/management/custom-roles"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[150,1199,")=>null;const EnterprisePlanBadge=()=>null;function _createM"]]},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"View roles and permissions","slug":"view-roles-and-permissions","depth":2,"children":[]},{"title":"Create a custom role","slug":"create-a-custom-role","depth":2,"children":[]},{"title":"Duplicate an existing role","slug":"duplicate-an-existing-role","depth":2,"children":[]},{"title":"Edit role permissions","slug":"edit-role-permissions","depth":2,"children":[{"title":"Role detail page","slug":"role-detail-page","depth":3,"children":[]},{"title":"Permission matrix","slug":"permission-matrix","depth":3,"children":[]},{"title":"Save or discard changes","slug":"save-or-discard-changes","depth":3,"children":[]}]},{"title":"Set a default role","slug":"set-a-default-role","depth":2,"children":[]},{"title":"Delete a custom role","slug":"delete-a-custom-role","depth":2,"children":[]},{"title":"Assign roles in Team Management","slug":"assign-roles-in-team-management","depth":2,"children":[]},{"title":"API reference","slug":"api-reference","depth":2,"children":[]},{"title":"What’s next","slug":"what’s-next","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/coderabbit/c83587702ff75216/inkeep.js","/_mintlify/custom/coderabbit/b7ecafa4358af1c7/yaml-editor.js","/_mintlify/custom/coderabbit/44fd990531d7b83e/acquisition.js"],"subdomain":"coderabbit","siteName":"CodeRabbit","title":"Custom roles and permissions - CodeRabbit","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-13T18:10:20.427Z","originalFileLocation":"management/custom-roles.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create and manage custom roles with granular permissions for your Enterprise organization in CodeRabbit.\">\u003cmeta data-mint-head name=\"application-name\" content=\"CodeRabbit\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/coderabbit/d4muCEkFHyXyjg4k/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/coderabbit/d4muCEkFHyXyjg4k/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/coderabbit/d4muCEkFHyXyjg4k/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/coderabbit/d4muCEkFHyXyjg4k/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/coderabbit/d4muCEkFHyXyjg4k/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/coderabbit/d4muCEkFHyXyjg4k/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/coderabbit/d4muCEkFHyXyjg4k/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/coderabbit/d4muCEkFHyXyjg4k/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/coderabbit/d4muCEkFHyXyjg4k/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Custom roles and permissions - CodeRabbit\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create and manage custom roles with granular permissions for your Enterprise organization in CodeRabbit.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CodeRabbit Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.coderabbit.ai/management/custom-roles\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://coderabbit.mintlify.site/_mintlify/api/og/v2?division=Organization+administration\u0026amp;title=Custom+roles+and+permissions\u0026amp;description=Create+and+manage+custom+roles+with+granular+permissions+for+your+Enterprise+organization+in+CodeRabbit.\u0026amp;theme=e25dc9e67170d7dae31e0b2f\u0026amp;signature=435fcd711eee5052dae6c562eda0eb86fbbdebaa13614882986c592f4c080ee8\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Custom roles and permissions - CodeRabbit\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create and manage custom roles with granular permissions for your Enterprise organization in CodeRabbit.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://coderabbit.mintlify.site/_mintlify/api/og/v2?division=Organization+administration\u0026amp;title=Custom+roles+and+permissions\u0026amp;description=Create+and+manage+custom+roles+with+granular+permissions+for+your+Enterprise+organization+in+CodeRabbit.\u0026amp;theme=e25dc9e67170d7dae31e0b2f\u0026amp;signature=435fcd711eee5052dae6c562eda0eb86fbbdebaa13614882986c592f4c080ee8\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/coderabbit/d4muCEkFHyXyjg4k/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CodeRabbit\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF570A\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.coderabbit.ai/management/custom-roles\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/management/custom-roles.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.coderabbit.ai/#organization\",\"name\":\"CodeRabbit\",\"url\":\"https://docs.coderabbit.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/coderabbit/qAZa_d7FrwPO_w-O/coderabbit-logo-light.svg?fit=max\u0026auto=format\u0026n=qAZa_d7FrwPO_w-O\u0026q=85\u0026s=d2bf9e91be0e760ec9cb468676fa6ab6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.coderabbit.ai#website\",\"name\":\"CodeRabbit\",\"url\":\"https://docs.coderabbit.ai\",\"publisher\":{\"@id\":\"https://docs.coderabbit.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.coderabbit.ai/management/custom-roles#webpage\",\"url\":\"https://docs.coderabbit.ai/management/custom-roles\",\"name\":\"Custom roles and permissions\",\"description\":\"Create and manage custom roles with granular permissions for your Enterprise organization in CodeRabbit.\",\"dateModified\":\"2026-11-13T18:10:20.427Z\",\"isPartOf\":{\"@id\":\"https://docs.coderabbit.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.coderabbit.ai/management/custom-roles#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.coderabbit.ai/management/custom-roles#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Organization administration\",\"item\":\"https://docs.coderabbit.ai/management/seat-assignment\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Custom roles and permissions\",\"item\":\"https://docs.coderabbit.ai/management/custom-roles\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.coderabbit.ai/management/custom-roles#article\",\"headline\":\"Custom roles and permissions\",\"name\":\"Custom roles and permissions\",\"description\":\"Create and manage custom roles with granular permissions for your Enterprise organization in CodeRabbit.\",\"url\":\"https://docs.coderabbit.ai/management/custom-roles\",\"mainEntityOfPage\":{\"@id\":\"https://docs.coderabbit.ai/management/custom-roles#webpage\"},\"dateModified\":\"2026-11-13T18:10:20.427Z\",\"publisher\":{\"@id\":\"https://docs.coderabbit.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.coderabbit.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CodeRabbit\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"CodeRabbit\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/management/custom-roles.md","siteName":"CodeRabbit","nav":{"global":{"anchors":[{"anchor":"Quickstart","icon":"rocket","hidden":false,"href":"/getting-started/quickstart"},{"anchor":"Blog","icon":"pen-line","hidden":true,"href":"https://coderabbit.ai/blog"},{"anchor":"Changelog","icon":"history","href":"/changelog"},{"anchor":"Support","icon":"life-buoy","href":"/support"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/coderabbit"}]},"tabs":[{"tab":"Review","icon":"git-pull-request","pages":[{"title":"Review","href":""}]},{"tab":"Triage","icon":"list-filter","pages":[{"title":"Triage","href":"/triage"}]},{"tab":"Explain","icon":"layers","pages":[{"title":"Explain","href":"/change-stack"}]},{"tab":"Verify","icon":"flask-conical","pages":[{"title":"Verify","href":"/verify"}]},{"tab":"Secure","icon":"shield-check","pages":[{"title":"Secure","href":"/security"}]},{"tab":"Agents","icon":"bot","menu":[{"item":"Coding Agent","icon":"square-code","description":"Delegate coding tasks from the web app","pages":[{"title":"Coding Agent","href":"/code"}]},{"item":"Agent for Slack","icon":"slack","description":"Ask, plan and open pull requests from Slack","pages":[{"title":"Agent for Slack","href":"/agent"}]},{"item":"Agent for Discord","icon":"discord","description":"The same agent in Discord","pages":[{"title":"Agent for Discord","href":"/discord-agent"}]},{"item":"Automations","icon":"workflow","description":"Triggers, instructions and destinations","pages":[{"title":"Automations","href":"/automations"}]}],"pages":[{"title":"Agents","href":"/code"}]},{"tab":"CLI and IDE","icon":"square-terminal","pages":[{"title":"CLI and IDE","href":"/cli-ide-overview"}]},{"tab":"API and MCP","icon":"braces","pages":[{"title":"API and MCP","href":"/api"}]},{"tab":"Admin","icon":"wrench","pages":[{"title":"Admin overview","sidebarTitle":"Overview","mode":"wide","href":"/management"},{"group":"Git platforms","icon":"folder-git-2","pages":[{"title":"Overview","href":"/platforms/overview"},{"group":"Supported Git platforms","expanded":false,"pages":[{"title":"GitHub","icon":"github","href":"/platforms/github-com"},{"title":"GitHub Enterprise Server","icon":"github","href":"/platforms/github-enterprise-server"},{"title":"GitLab","icon":"gitlab","href":"/platforms/gitlab-com"},{"title":"Self-managed GitLab","sidebarTitle":"GitLab self-managed","icon":"gitlab","href":"/platforms/self-hosted-gitlab"},{"title":"Azure DevOps","icon":"microsoft","href":"/platforms/azure-devops"},{"title":"Bitbucket Cloud","icon":"bitbucket","href":"/platforms/bitbucket-cloud"},{"title":"Bitbucket Data Center","icon":"bitbucket","href":"/platforms/bitbucket-data-center"}]}]},{"group":"Subscription \u0026 billing","icon":"credit-card","pages":[{"title":"Plans and pricing","sidebarTitle":"Plans and pricing","href":"/management/plans"},{"title":"Review rate limits","sidebarTitle":"Rate limits","href":"/management/rate-limits"},{"title":"Billing and changing plans","sidebarTitle":"Billing and changing plans","href":"/management/billing"},{"title":"Enterprise seat true-up","sidebarTitle":"Enterprise seat true-up","href":"/management/enterprise-seat-true-up"},{"title":"Usage-based reviews","sidebarTitle":"Usage-based reviews","href":"/management/usage-based-addon"},{"title":"Subscription management","sidebarTitle":"Subscription management","href":"/management/subscription-management"}]},{"group":"Connections","icon":"plug","pages":[{"title":"Connections","sidebarTitle":"Connections","href":"/connections/index"},{"title":"Scopes overview","sidebarTitle":"Scopes","href":"/connections/scopes"},{"title":"Review scopes","sidebarTitle":"Review scopes","href":"/connections/scopes-review"},{"title":"Connect MCP servers","sidebarTitle":"MCP servers","href":"/connections/mcp-servers"},{"group":"Issue trackers","root":{"title":"Issue trackers","href":"/connections/issue-trackers"},"pages":[{"title":"Jira Integration","icon":"jira","href":"/connections/jira"},{"title":"Linear Integration","icon":"linear","href":"/connections/linear"}]},{"group":"CI/CD tools","pages":[{"title":"CircleCI integration","sidebarTitle":"CircleCI","href":"/connections/circleci"},{"title":"Jenkins integration","sidebarTitle":"Jenkins","href":"/connections/jenkins"}]}]},{"group":"Dashboard","icon":"layout-dashboard","pages":[{"title":"Overview","href":"/guides/dashboard"},{"title":"Git platform review metrics","href":"/guides/dashboard-metrics"},{"title":"IDE/CLI review metrics","href":"/guides/ide-cli-dashboard-metrics"},{"title":"Review Usage dashboard","sidebarTitle":"Review Usage","href":"/management/review-usage-dashboard"},{"title":"Data Export","href":"/guides/data-export"}]},{"group":"Reports","icon":"text-search","pages":[{"title":"Reports Overview","sidebarTitle":"Overview","href":"/management/reports/index"},{"title":"Schedule reports","href":"/guides/scheduled-reports"},{"title":"Legacy Report Testing","href":"/guides/ondemand-reports"},{"title":"Customize CodeRabbit pull request reports with prompts","sidebarTitle":"Custom reports","href":"/guides/custom-reports"}]},{"group":"Organization administration","icon":"user-cog","pages":[{"title":"Seat assignment","href":"/management/seat-assignment"},{"title":"Role-based access","description":"Control access to CodeRabbit administrative features by assigning Admin, Member, or Billing Admin roles to organization users.","href":"/management/roles"},{"title":"Custom roles and permissions","href":"/management/custom-roles"},{"title":"Set up Multi-Org","sidebarTitle":"Multiple organizations","description":"Add and configure multiple organizations in CodeRabbit for Enterprise deployments.","href":"/management/multi-org"},{"title":"Add organizations","href":"/management/adding-organizations"},{"title":"Set permissions","href":"/management/upgrading-permissions"},{"title":"Audit Logs","href":"/management/audit-logs"}]},{"group":"Enterprise SSO","icon":"key","pages":[{"title":"Enterprise SSO","sidebarTitle":"Overview","href":"/management/sso/index"},{"title":"Okta SAML SSO setup","sidebarTitle":"Okta SAML","href":"/management/sso/okta-saml"},{"title":"Google Workspace self-serve SSO setup","sidebarTitle":"Google Workspace","href":"/management/sso/google-workspace-saml"},{"title":"Microsoft Entra ID SSO setup","sidebarTitle":"Microsoft Entra ID","href":"/management/sso/microsoft-entra-saml"},{"title":"SAML 2.0 provider SSO setup","sidebarTitle":"Other SAML 2.0 providers","href":"/management/sso/custom-saml"},{"title":"Prepare self-hosted Git providers for SSO","sidebarTitle":"Self-hosted Git providers","href":"/management/sso/self-hosted-git-providers"},{"title":"Azure DevOps Server setup","sidebarTitle":"Azure DevOps Server","href":"/management/sso/azure-devops-server"},{"title":"SCIM directory sync","sidebarTitle":"SCIM directory sync","href":"/management/sso/scim"},{"title":"SSO user management API","sidebarTitle":"User management API","href":"/management/sso/user-management-api"}]},{"group":"Self-hosted CodeRabbit","icon":"server","pages":[{"title":"Self-hosted CodeRabbit","sidebarTitle":"Overview","href":"/self-hosted/overview"},{"group":"Reverse Tunnel","pages":[{"title":"CodeRabbit Reverse Tunnel","sidebarTitle":"Reverse Tunnel overview","href":"/self-hosted/coderabbit-reverse-tunnel"},{"title":"Reverse Tunnel connector configuration","sidebarTitle":"Connector configuration","href":"/self-hosted/reverse-tunnel-connector-configuration"}]}]},{"title":"Early Access Program","href":"/early-access"}]}]},"basePath":"","title":"Custom roles and permissions - CodeRabbit","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["10e4515597"],"chunks":["BannerMarkdown-CVKwuln2.js","dist-CXMB3QQU.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}