cd /news/developer-tools/automate-role-management-in-coderabb… · home topics developer-tools article
[ARTICLE · art-43083] src=coderabbit.ai ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Automate role management in CodeRabbit with the new Custom Roles API

CodeRabbit launched a Custom Roles API for Enterprise customers, enabling programmatic creation, configuration, and assignment of user roles via REST endpoints. The API automates access management, allowing organizations to standardize onboarding, manage roles as code, and sync with identity systems like Rippling. It is available now for Enterprise users with Admin API keys.

read2 min views8 publishedJun 5, 2026
Automate role management in CodeRabbit with the new Custom Roles API
Image: Coderabbit (auto-discovered)

Henry Lau

Yiwen Xu

June 05, 2026

2 min read

June 05, 2026

2 min read

Cut code review time & bugs by 50%

Most installed AI app on GitHub and GitLab

Free 14-day trial

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.

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.

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:

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

── more in #developer-tools 4 stories · sorted by recency
── more on @coderabbit 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/automate-role-manage…] indexed:0 read:2min 2026-06-05 ·