Skip to content
vercel-enterprise-rbac logo

Vercel Enterprise RBAC

vercel-enterprise-rbac

Configure Vercel enterprise RBAC, access groups, SSO integration, and

SKILL.md

Full skill instructions

Vercel Enterprise RBAC

Overview

Configure Vercel's role-based access control (RBAC) with team roles, project-level access groups, SSO/​SAML integration, and audit logging. Covers the two access control planes: team-level (who can deploy) and application-level (who can access deployed content).

Prerequisites

  • Vercel Pro or Enterprise plan
  • Identity Provider (IdP) with SAML 2.0 support (for SSO)
  • Understanding of your organization's access requirements

Instructions

Step 1: Understand Vercel's Role Model

Team-Level Roles:

RoleDeploy ProdManage ProjectsManage BillingManage Members
OwnerYesYesYesYes
MemberYesYesNoNo
DeveloperPreview onlyLimitedNoNo
ViewerNoRead-onlyNoNo
Security (Enterprise)NoSecurity settingsNoNo

Extended Permissions (Enterprise): Layer on top of base roles for granular control:

  • Deploy to production
  • Manage environment variables
  • Manage domains
  • Access runtime logs
  • Manage integrations

Step 2: Configure Team Members via API

# Invite a team member
curl -X POST "https://api.vercel.com/​v1/​teams/​team_xxx/​members" \
  -H "Authorization: Bearer $VERCEL_TOKEN" \
  -H "Content-Type: application/​json" \
  -d '{
    "email": "[email protected]",
    "role": "DEVELOPER"
  }'

# List team members
curl -s -H "Authorization: Bearer $VERCEL_TOKEN" \
  "https://api.vercel.com/​v2/​teams/​team_xxx/​members" \
  | jq '.members[] | {name: .name, email: .email, role: .role}'

# Update a member's role
curl -X PATCH "https://api.vercel.com/​v1/​teams/​team_xxx/​members/​user_xxx" \
  -H "Authorization: Bearer $VERCEL_TOKEN" \
  -H "Content-Type: application/​json" \
  -d '{"role": "MEMBER"}'

# Remove a team member
curl -X DELETE "https://api.vercel.com/​v1/​teams/​team_xxx/​members/​user_xxx" \
  -H "Authorization: Bearer $VERCEL_TOKEN"

Step 3: Access Groups (Project-Level Permissions)

Access Groups assign teams of people to specific projects with specific roles:

  1. Go to Team Settings > Access Groups
  2. Create a group (e.g., "Frontend Team", "Backend Team")
  3. Add members to the group
  4. Assign the group to specific projects with a role
Example Access Group Setup:
├── Frontend Team → [project-web, project-docs] → Member role
├── Backend Team → [project-api, project-worker] → Member role
├── DevOps Team → [all projects] → Member role
└── QA Team → [all projects] → Viewer role

Step 4: SSO / SAML Configuration

In the Vercel dashboard: Team Settings > Authentication > SAML Single Sign-On

  1. Enable SAML SSO
  2. Configure your IdP (Okta, Azure AD, Google Workspace):
    • ACS URL: https://vercel.com/​api/​auth/​saml/​acs
    • Entity ID: https://vercel.com
    • Name ID format: emailAddress
  3. Enter IdP metadata URL or upload certificate
  4. Map SAML attributes to Vercel fields
SAML Attribute Mapping:
├── email → user email (required)
├── firstName → display name
├── lastName → display name
└── groups → Vercel team roles (optional)

Enforce SSO for all team members: Once enabled, toggle "Require SAML for login" — all members must authenticate through SSO.

Step 5: Application-Level Auth with Middleware

// middleware.ts — enforce auth on deployed application routes
import { NextRequest, NextResponse } from 'next/​server';
import { verifyJWT } from '@/​lib/​auth';

const ROLE_ROUTES: Record<string, string[]> = {
  '/​admin': ['admin'],
  '/​dashboard': ['admin', 'member'],
  '/​api/​admin': ['admin'],
};

export async function middleware(request: NextRequest) {
  const { pathname } = request.nextUrl;

  // Check if route requires auth
  const requiredRoles = Object.entries(ROLE_ROUTES)
    .find(([prefix]) => pathname.startsWith(prefix));

  if (!requiredRoles) return NextResponse.next();

  const token = request.cookies.get('session')?.value;
  if (!token) {
    return pathname.startsWith('/​api')
      ? NextResponse.json({ error: 'Unauthorized' }, { status: 401 })
      : NextResponse.redirect(new URL('/​login', request.url));
  }

  const payload = await verifyJWT(token);
  if (!payload || !requiredRoles[1].includes(payload.role)) {
    return NextResponse.json({ error: 'Forbidden' }, { status: 403 });
  }

  // Pass user info to API routes via headers
  const response = NextResponse.next();
  response.headers.set('x-user-id', payload.sub);
  response.headers.set('x-user-role', payload.role);
  return response;
}

export const config = {
  matcher: ['/​admin/:path*', '/​dashboard/:path*', '/​api/​admin/:path*'],
};

Step 6: Audit Logging

Vercel Enterprise includes audit logs in Team Settings > Audit Log.

Events tracked:

  • Team member added/​removed/​role changed
  • Project created/​deleted
  • Deployment to production
  • Environment variable created/​updated/​deleted
  • Domain added/​removed
  • Integration installed/​uninstalled
  • SSO configuration changes
# Export audit logs via API (Enterprise)
curl -s -H "Authorization: Bearer $VERCEL_TOKEN" \
  "https://api.vercel.com/​v1/​teams/​team_xxx/​audit-log?limit=100" \
  | jq '.events[] | {action: .action, user: .user.email, createdAt: .createdAt, resource: .resource}'

RBAC Checklist

CheckStatus
Team roles assigned per least privilegeRequired
Production deploy restricted to Member+Required
Access Groups configured per projectRecommended
SSO/​SAML enforced for all membersEnterprise
Audit logging exported to SIEMEnterprise
Application-level auth in middlewareRequired
Off-boarding removes Vercel access via IdPRequired

Output

  • Team roles configured with least-privilege access
  • Access Groups scoping members to specific projects
  • SSO/​SAML enforced for all team authentication
  • Application-level RBAC in Edge Middleware
  • Audit logs exported for compliance

Error Handling

ErrorCauseSolution
Member can't deploy to prodDeveloper role (preview only)Change to Member or Owner role
SSO login failsIdP metadata URL expiredUpdate SAML configuration
Access Group not appliedMember not in groupAdd member to the Access Group
Audit log missing eventsFree/​Pro plan limitationUpgrade to Enterprise for audit logs
Off-boarded user still has accessSSO not enforcedEnable "Require SAML for login"

Resources

Next Steps

For migration strategies, see vercel-migration-deep-dive.

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
Imagica logo
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View