Anthropic Enterprise RBAC
Overview
Anthropic provides organization-level access control through Workspaces, API key scoping, and member roles via the Console at console.anthropic.com.
Organization Structure
Organization (billing entity)
├── Workspace: Production
│ ├── API Key: sk-ant-api03-prod-main-...
│ ├── API Key: sk-ant-api03-prod-batch-...
│ └── Rate limits: Tier 4
├── Workspace: Staging
│ ├── API Key: sk-ant-api03-stg-...
│ └── Rate limits: Tier 2
└── Workspace: Development
├── API Key: sk-ant-api03-dev-...
└── Rate limits: Tier 1
Console Roles
| Role |
Capabilities |
| Owner |
Full access, billing, member management |
| Admin |
Manage workspaces, API keys, view usage |
| Developer |
Create/revoke own API keys, view own usage |
| Billing |
View invoices and usage reports only |
Application-Level RBAC
# Implement your own RBAC on top of Anthropic Workspaces
from enum import Enum
import anthropic
class UserRole(Enum):
VIEWER = "viewer" # Can read Claude responses (no direct API)
USER = "user" # Can send prompts (rate limited)
POWER_USER = "power" # Can use Opus, higher limits
ADMIN = "admin" # Can access all models, no limits
ROLE_CONFIG = {
UserRole.VIEWER: {"allowed": False},
UserRole.USER: {
"allowed": True,
"models": ["claude-haiku-4-20250514"],
"max_tokens": 512,
"rpm_limit": 10,
},
UserRole.POWER_USER: {
"allowed": True,
"models": ["claude-haiku-4-20250514", "claude-sonnet-4-20250514", "claude-opus-4-20250514"],
"max_tokens": 4096,
"rpm_limit": 60,
},
UserRole.ADMIN: {
"allowed": True,
"models": ["claude-haiku-4-20250514", "claude-sonnet-4-20250514", "claude-opus-4-20250514"],
"max_tokens": 8192,
"rpm_limit": 200,
},
}
def create_message(user_role: UserRole, model: str, **kwargs):
config = ROLE_CONFIG[user_role]
if not config["allowed"]:
raise PermissionError("Role does not allow API access")
if model not in config["models"]:
raise PermissionError(f"Role cannot access model: {model}")
kwargs["max_tokens"] = min(kwargs.get("max_tokens", 1024), config["max_tokens"])
client = anthropic.Anthropic()
return client.messages.create(model=model, **kwargs)
Key Management Best Practices
| Practice |
Implementation |
| One key per service |
prod-auth-service, prod-search-service |
| Rotate quarterly |
Calendar reminder + automated rotation |
| Least privilege |
Dev workspace for dev keys only |
| Audit trail |
Log which key made each request |
| Revoke immediately |
On employee departure or compromise |
Error Handling
| Issue |
Cause |
Fix |
| Key works in dev, fails in prod |
Wrong workspace key |
Verify key belongs to prod workspace |
| New team member can't access |
Not added to workspace |
Invite via Console > Members |
| Usage not visible |
Viewing wrong workspace |
Switch workspace in Console |
Resources
Next Steps
For major migration strategies, see anth-migration-deep-dive.
1---2name: anth-enterprise-rbac3description: |4 Configure Anthropic enterprise organization management, Workspaces,5 and role-based access control for teams.6 Trigger with phrases like "anthropic enterprise", "claude rbac",7 "anthropic workspaces", "claude team access", "anthropic organization".8allowed-tools: Read, Write, Edit, Grep9version: 1.0.010license: MIT11author: Jeremy Longshore <jeremy@intentsolutions.io>12tags: [saas, ai, anthropic]13compatible-with: claude-code14---1516# Anthropic Enterprise RBAC1718## Overview1920Anthropic provides organization-level access control through Workspaces, API key scoping, and member roles via the Console at [console.anthropic.com](https://console.anthropic.com).2122## Organization Structure2324```25Organization (billing entity)26├── Workspace: Production27│ ├── API Key: sk-ant-api03-prod-main-...28│ ├── API Key: sk-ant-api03-prod-batch-...29│ └── Rate limits: Tier 430├── Workspace: Staging31│ ├── API Key: sk-ant-api03-stg-...32│ └── Rate limits: Tier 233└── Workspace: Development34 ├── API Key: sk-ant-api03-dev-...35 └── Rate limits: Tier 136```3738## Console Roles3940| Role | Capabilities |41|------|-------------|42| Owner | Full access, billing, member management |43| Admin | Manage workspaces, API keys, view usage |44| Developer | Create/revoke own API keys, view own usage |45| Billing | View invoices and usage reports only |4647## Application-Level RBAC4849```python50# Implement your own RBAC on top of Anthropic Workspaces51from enum import Enum52import anthropic5354class UserRole(Enum):55 VIEWER = "viewer" # Can read Claude responses (no direct API)56 USER = "user" # Can send prompts (rate limited)57 POWER_USER = "power" # Can use Opus, higher limits58 ADMIN = "admin" # Can access all models, no limits5960ROLE_CONFIG = {61 UserRole.VIEWER: {"allowed": False},62 UserRole.USER: {63 "allowed": True,64 "models": ["claude-haiku-4-20250514"],65 "max_tokens": 512,66 "rpm_limit": 10,67 },68 UserRole.POWER_USER: {69 "allowed": True,70 "models": ["claude-haiku-4-20250514", "claude-sonnet-4-20250514", "claude-opus-4-20250514"],71 "max_tokens": 4096,72 "rpm_limit": 60,73 },74 UserRole.ADMIN: {75 "allowed": True,76 "models": ["claude-haiku-4-20250514", "claude-sonnet-4-20250514", "claude-opus-4-20250514"],77 "max_tokens": 8192,78 "rpm_limit": 200,79 },80}8182def create_message(user_role: UserRole, model: str, **kwargs):83 config = ROLE_CONFIG[user_role]84 if not config["allowed"]:85 raise PermissionError("Role does not allow API access")86 if model not in config["models"]:87 raise PermissionError(f"Role cannot access model: {model}")88 kwargs["max_tokens"] = min(kwargs.get("max_tokens", 1024), config["max_tokens"])8990 client = anthropic.Anthropic()91 return client.messages.create(model=model, **kwargs)92```9394## Key Management Best Practices9596| Practice | Implementation |97|----------|---------------|98| One key per service | `prod-auth-service`, `prod-search-service` |99| Rotate quarterly | Calendar reminder + automated rotation |100| Least privilege | Dev workspace for dev keys only |101| Audit trail | Log which key made each request |102| Revoke immediately | On employee departure or compromise |103104## Error Handling105106| Issue | Cause | Fix |107|-------|-------|-----|108| Key works in dev, fails in prod | Wrong workspace key | Verify key belongs to prod workspace |109| New team member can't access | Not added to workspace | Invite via Console > Members |110| Usage not visible | Viewing wrong workspace | Switch workspace in Console |111112## Resources113114- [Console](https://console.anthropic.com)115- [Workspaces](https://docs.anthropic.com/en/docs/administration/workspaces)116117## Next Steps118119For major migration strategies, see `anth-migration-deep-dive`.120