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.
Source: jeremylongshore/claude-code-plugins-plus-skills → plugins/saas-packs/anthropic-pack/skills/anth-enterprise-rbac/SKILL.md
1---2name: anth-enterprise-rbac3description: "'Configure Anthropic enterprise organization management, Workspaces, and role-based access control for teams. Trigger with phrases like \"anthropic enterprise\", \"claude rbac\", \"anthropic workspaces\", \"claude team access\", \"anthropic organization\". '"4allowed-tools: "Read, Write, Edit, Grep"5category: general-purpose6source_repo: jeremylongshore/claude-code-plugins-plus-skills7source_path: "plugins/saas-packs/anthropic-pack/skills/anth-enterprise-rbac/SKILL.md"8source_url: https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/HEAD/plugins/saas-packs/anthropic-pack/skills/anth-enterprise-rbac/SKILL.md9metadata:10 source: https://skillmd.com/skills/thedixitjain/anth-enterprise-rbac11---1213# Anthropic Enterprise RBAC1415## Overview1617Anthropic provides organization-level access control through Workspaces, API key scoping, and member roles via the Console at [console.anthropic.com](https://console.anthropic.com).1819## Organization Structure2021```22Organization (billing entity)23├── Workspace: Production24│ ├── API Key: sk-ant-api03-prod-main-...25│ ├── API Key: sk-ant-api03-prod-batch-...26│ └── Rate limits: Tier 427├── Workspace: Staging28│ ├── API Key: sk-ant-api03-stg-...29│ └── Rate limits: Tier 230└── Workspace: Development31 ├── API Key: sk-ant-api03-dev-...32 └── Rate limits: Tier 133```3435## Console Roles3637| Role | Capabilities |38|------|-------------|39| Owner | Full access, billing, member management |40| Admin | Manage workspaces, API keys, view usage |41| Developer | Create/revoke own API keys, view own usage |42| Billing | View invoices and usage reports only |4344## Application-Level RBAC4546```python47# Implement your own RBAC on top of Anthropic Workspaces48from enum import Enum49import anthropic5051class UserRole(Enum):52 VIEWER = "viewer" # Can read Claude responses (no direct API)53 USER = "user" # Can send prompts (rate limited)54 POWER_USER = "power" # Can use Opus, higher limits55 ADMIN = "admin" # Can access all models, no limits5657ROLE_CONFIG = {58 UserRole.VIEWER: {"allowed": False},59 UserRole.USER: {60 "allowed": True,61 "models": ["claude-haiku-4-20250514"],62 "max_tokens": 512,63 "rpm_limit": 10,64 },65 UserRole.POWER_USER: {66 "allowed": True,67 "models": ["claude-haiku-4-20250514", "claude-sonnet-4-20250514", "claude-opus-4-20250514"],68 "max_tokens": 4096,69 "rpm_limit": 60,70 },71 UserRole.ADMIN: {72 "allowed": True,73 "models": ["claude-haiku-4-20250514", "claude-sonnet-4-20250514", "claude-opus-4-20250514"],74 "max_tokens": 8192,75 "rpm_limit": 200,76 },77}7879def create_message(user_role: UserRole, model: str, **kwargs):80 config = ROLE_CONFIG[user_role]81 if not config["allowed"]:82 raise PermissionError("Role does not allow API access")83 if model not in config["models"]:84 raise PermissionError(f"Role cannot access model: {model}")85 kwargs["max_tokens"] = min(kwargs.get("max_tokens", 1024), config["max_tokens"])8687 client = anthropic.Anthropic()88 return client.messages.create(model=model, **kwargs)89```9091## Key Management Best Practices9293| Practice | Implementation |94|----------|---------------|95| One key per service | `prod-auth-service`, `prod-search-service` |96| Rotate quarterly | Calendar reminder + automated rotation |97| Least privilege | Dev workspace for dev keys only |98| Audit trail | Log which key made each request |99| Revoke immediately | On employee departure or compromise |100101## Error Handling102103| Issue | Cause | Fix |104|-------|-------|-----|105| Key works in dev, fails in prod | Wrong workspace key | Verify key belongs to prod workspace |106| New team member can't access | Not added to workspace | Invite via Console > Members |107| Usage not visible | Viewing wrong workspace | Switch workspace in Console |108109## Resources110111- [Console](https://console.anthropic.com)112- [Workspaces](https://docs.anthropic.com/en/docs/administration/workspaces)113114## Next Steps115116For major migration strategies, see `anth-migration-deep-dive`.117118---119120**Source:** [`jeremylongshore/claude-code-plugins-plus-skills`](https://github.com/jeremylongshore/claude-code-plugins-plus-skills) → `plugins/saas-packs/anthropic-pack/skills/anth-enterprise-rbac/SKILL.md`