CodeRabbit logoCodeRabbit logo
AgentEnterpriseCustomersPricingBlog
Resources
  • Docs
  • Trust Center
  • Contact Us
  • FAQ
  • Reports & Guides
Log InGet a free trial
CodeRabbit logoCodeRabbit logo

Products

AgentPull Request ReviewsIDE ReviewsCLI ReviewsPlanOSS

Navigation

About UsFeaturesFAQSystem StatusCareersDPAStartup ProgramVulnerability Disclosure

Resources

BlogDocsChangelogCase StudiesTrust CenterBrand GuidelinesReports & Guides

Contact

SupportSalesPricingPartnerships

By signing up you agree to our Terms of Use and authorize CodeRabbit to provide occasional updates about products and solutions. You understand that you can opt out at any time and that your data will be handled in accordance with CodeRabbit Privacy Policy

discord iconx iconlinkedin iconrss icon
footer-logo shape
Terms of Service Privacy Policy

CodeRabbit, Inc. © 2026

CodeRabbit logoCodeRabbit logo

Products

AgentPull Request ReviewsIDE ReviewsCLI ReviewsPlanOSS

Navigation

About UsFeaturesFAQSystem StatusCareersDPAStartup ProgramVulnerability Disclosure

Resources

BlogDocsChangelogCase StudiesTrust CenterBrand GuidelinesReports & Guides

Contact

SupportSalesPricingPartnerships

By signing up you agree to our Terms of Use and authorize CodeRabbit to provide occasional updates about products and solutions. You understand that you can opt out at any time and that your data will be handled in accordance with CodeRabbit Privacy Policy

discord iconx iconlinkedin iconrss icon

Automate role management in CodeRabbit with the new Custom Roles API

by
Henry Lau
Yiwen Xu

Henry Lau

Yiwen Xu

June 05, 2026

2 min read

June 05, 2026

2 min read

  • What you can automate with Custom Role APIs
  • Try it out
Back to blog
Cover image

Share

https://victorious-bubble-f69a016683.media.strapiapp.com/Reddit_feecae8a6d.pnghttps://victorious-bubble-f69a016683.media.strapiapp.com/X_721afca608.pnghttps://victorious-bubble-f69a016683.media.strapiapp.com/Linked_In_a3d8c65f20.png

Cut code review time & bugs by 50%

Most installed AI app on GitHub and GitLab

Free 14-day trial

Get Started

Catch the latest, right in your inbox.

Add us your feed.RSS feed icon
newsletter decoration

Catch the latest, right in your inbox.

Add us your feed.RSS feed icon

Keep reading

Introducing CodeRabbit Reverse Tunnel: AI code review for private-network enterprises

Introducing CodeRabbit Reverse Tunnel: AI code review for private-network enterprises

Connect CodeRabbit to a private GitHub Enterprise Server with no inbound firewall rules, no IP allowlisting, and no PrivateLink. One outbound HTTPS connection. That's it.

Nemotron 3 Ultra makes the case for fast, open coding models

Nemotron 3 Ultra makes the case for fast, open coding models

Nemotron 3 Ultra brings fast open-weight reasoning to dev workflows. CodeRabbit benchmarks show near-baseline review performance with retries and validation.

CodeRabbit now supports NVIDIA Nemotron 3 Ultra

CodeRabbit now supports NVIDIA Nemotron 3 Ultra

NVIDIA Nemotron 3 Ultra delivers accurate and fast throughput in CodeRabbit's self-hosted AI code reviews.

Get
Started in
2 clicks.

No credit card needed

Your browser does not support the video.
Install in VS Code
Your browser does not support the video.

Until now, every custom role in CodeRabbit lived in the dashboard. An admin opened the Permissions page, built a role, set its read and write permissions, and assigned it to each user by hand. That's fine when you're onboarding a few people. It doesn't scale when you're a large organization with engineers joining, switching teams, and leaving every week.

Today we're introducing the Custom Roles API for Enterprise which are REST endpoints that let you create, configure, and assign custom roles programmatically. Everything you can do on the Permissions page can now be automated, so access scales with your headcount and you can get the most out of every CodeRabbit subscription.

What you can automate with Custom Role APIs

Standardize every new user. Set a role as the default with is_default, and every new member starts with the right baseline access automatically.

Manage roles as code. Define your org's roles in version control and create them through the API. Use duplicate_from to base a new role like Security Reviewer on an existing one (cr_member by default), then adjust only the permissions that differ.

Sync roles with your identity system. Connect the API to an HRIS like Rippling so the right role is granted the moment someone joins and revoked the moment they leave.

Web application displaying 'Roles and Permissions' page with a table of user roles.

Creating a new custom role takes a single call:

POST https://api.coderabbit.ai/v1/roles
x-coderabbitai-api-key: <your-key>

{
  "name": "Security Reviewer",
  "duplicate_from": "cr_member",
  "permissions": [
    { "resource_id": "user_management", "access_type": "read" }
  ]
}

Other new API endpoints include:

  • GET /v1/roles
  • GET /v1/roles/permissions
  • POST /v1/roles
  • GET /v1/roles/{role_id}
  • PATCH /v1/roles/{role_id}
  • DELETE /v1/roles/{role_id}

Try it out

The Custom Roles API turns access management from a click-by-click chore into something your systems handle on their own, provisioned consistently, updated instantly, and easy to govern as your team grows.

It's available now for Enterprise customers. Generate an API key with Admin permissions from your CodeRabbit dashboard, and wire role management into the workflows you already run.

Learn more: Create a custom role API reference