Skip to content
retellai-enterprise-rbac logo

Retell AI Enterprise RBAC

retellai-enterprise-rbac

Configure Retell AI enterprise SSO, role-based access control, and organization management. Use when implementing SSO integration, configuring role-based permissions, or setting up organization-level controls for Retell AI. Trigger with phrases like "retellai SSO", "retellai RBAC", "retellai ente...

SKILL.md

Full skill instructions

Retell AI Enterprise RBAC

Overview

Configure enterprise-grade access control for Retell AI integrations.

Prerequisites

  • Retell AI Enterprise tier subscription
  • Identity Provider (IdP) with SAML/​OIDC support
  • Understanding of role-based access patterns
  • Audit logging infrastructure

Role Definitions

RolePermissionsUse Case
AdminFull accessPlatform administrators
DeveloperRead/​write, no deleteActive development
ViewerRead-onlyStakeholders, auditors
ServiceAPI access onlyAutomated systems

Role Implementation

enum Retell AIRole {
  Admin = 'admin',
  Developer = 'developer',
  Viewer = 'viewer',
  Service = 'service',
}

interface Retell AIPermissions {
  read: boolean;
  write: boolean;
  delete: boolean;
  admin: boolean;
}

const ROLE_PERMISSIONS: Record<Retell AIRole, Retell AIPermissions> = {
  admin: { read: true, write: true, delete: true, admin: true },
  developer: { read: true, write: true, delete: false, admin: false },
  viewer: { read: true, write: false, delete: false, admin: false },
  service: { read: true, write: true, delete: false, admin: false },
};

function checkPermission(
  role: Retell AIRole,
  action: keyof Retell AIPermissions
): boolean {
  return ROLE_PERMISSIONS[role][action];
}

SSO Integration

SAML Configuration

// Retell AI SAML setup
const samlConfig = {
  entryPoint: 'https://idp.company.com/​saml/​sso',
  issuer: 'https://retellai.com/​saml/​metadata',
  cert: process.env.SAML_CERT,
  callbackUrl: 'https://app.yourcompany.com/​auth/​retellai/​callback',
};

// Map IdP groups to Retell AI roles
const groupRoleMapping: Record<string, Retell AIRole> = {
  'Engineering': Retell AIRole.Developer,
  'Platform-Admins': Retell AIRole.Admin,
  'Data-Team': Retell AIRole.Viewer,
};

OAuth2/​OIDC Integration

import { OAuth2Client } from '@retellai/​sdk';

const oauthClient = new OAuth2Client({
  clientId: process.env.RETELLAI_OAUTH_CLIENT_ID!,
  clientSecret: process.env.RETELLAI_OAUTH_CLIENT_SECRET!,
  redirectUri: 'https://app.yourcompany.com/​auth/​retellai/​callback',
  scopes: ['read', 'write'],
});

Organization Management

interface Retell AIOrganization {
  id: string;
  name: string;
  ssoEnabled: boolean;
  enforceSso: boolean;
  allowedDomains: string[];
  defaultRole: Retell AIRole;
}

async function createOrganization(
  config: Retell AIOrganization
): Promise<void> {
  await retellaiClient.organizations.create({
    ...config,
    settings: {
      sso: {
        enabled: config.ssoEnabled,
        enforced: config.enforceSso,
        domains: config.allowedDomains,
      },
    },
  });
}

Access Control Middleware

function requireRetell AIPermission(
  requiredPermission: keyof Retell AIPermissions
) {
  return async (req: Request, res: Response, next: NextFunction) => {
    const user = req.user as { retellaiRole: Retell AIRole };

    if (!checkPermission(user.retellaiRole, requiredPermission)) {
      return res.status(403).json({
        error: 'Forbidden',
        message: `Missing permission: ${requiredPermission}`,
      });
    }

    next();
  };
}

// Usage
app.delete('/​retellai/​resource/:id',
  requireRetell AIPermission('delete'),
  deleteResourceHandler
);

Audit Trail

interface Retell AIAuditEntry {
  timestamp: Date;
  userId: string;
  role: Retell AIRole;
  action: string;
  resource: string;
  success: boolean;
  ipAddress: string;
}

async function logRetell AIAccess(entry: Retell AIAuditEntry): Promise<void> {
  await auditDb.insert(entry);

  // Alert on suspicious activity
  if (entry.action === 'delete' && !entry.success) {
    await alertOnSuspiciousActivity(entry);
  }
}

Instructions

Step 1: Define Roles

Map organizational roles to Retell AI permissions.

Step 2: Configure SSO

Set up SAML or OIDC integration with your IdP.

Step 3: Implement Middleware

Add permission checks to API endpoints.

Step 4: Enable Audit Logging

Track all access for compliance.

Output

  • Role definitions implemented
  • SSO integration configured
  • Permission middleware active
  • Audit trail enabled

Error Handling

IssueCauseSolution
SSO login failsWrong callback URLVerify IdP config
Permission deniedMissing role mappingUpdate group mappings
Token expiredShort TTLRefresh token logic
Audit gapsAsync logging failedCheck log pipeline

Examples

Quick Permission Check

if (!checkPermission(user.role, 'write')) {
  throw new ForbiddenError('Write permission required');
}

Resources

Next Steps

For major migrations, see retellai-migration-deep-dive.

More skills from HelixDevelopment

fireflies-local-dev-loop logo
HelixDevelopment/HelixAgent

fireflies-local-dev-loop

Configure Fireflies.ai local development with hot reload and testing. Use when setting up a development environment, configuring test workflows, or establishing a fast iteration cycle with Fireflies.ai. Trigger with phrases like "fireflies dev setup", "fireflies local development", "fireflies dev...

0 0
View
clerk-security-basics logo
HelixDevelopment/HelixAgent

clerk-security-basics

Implement security best practices with Clerk authentication. Use when securing your application, reviewing auth implementation, or hardening Clerk configuration. Trigger with phrases like "clerk security", "secure clerk", "clerk best practices", "clerk hardening".

0 0
View
openrouter-team-setup logo
HelixDevelopment/HelixAgent

openrouter-team-setup

Configure OpenRouter for team and organizational use. Use when setting up multi-user access or department billing. Trigger with phrases like 'openrouter team', 'openrouter organization', 'multi-user openrouter', 'openrouter rbac'.

0 0
View
coderabbit-security-basics logo
HelixDevelopment/HelixAgent

coderabbit-security-basics

Apply CodeRabbit security best practices for secrets and access control. Use when securing API keys, implementing least privilege access, or auditing CodeRabbit security configuration. Trigger with phrases like "coderabbit security", "coderabbit secrets", "secure coderabbit", "coderabbit API key ...

0 0
View
detecting-infrastructure-drift logo
HelixDevelopment/HelixAgent

detecting-infrastructure-drift

Execute use when detecting infrastructure drift from desired state. Trigger with phrases like "check for drift", "infrastructure drift detection", "compare actual vs desired state", or "detect configuration changes". Identifies discrepancies between current infrastructure and IaC definitions usin...

0 0
View
cursor-reference-architecture logo
HelixDevelopment/HelixAgent

cursor-reference-architecture

Execute reference architecture patterns for Cursor IDE projects. Triggers on "cursor architecture", "cursor project structure", "cursor best practices", "cursor team setup". Use when working with cursor reference architecture functionality. Trigger with phrases like "cursor reference architecture...

0 0
View
vastai-security-basics logo
HelixDevelopment/HelixAgent

vastai-security-basics

Apply Vast.ai security best practices for secrets and access control. Use when securing API keys, implementing least privilege access, or auditing Vast.ai security configuration. Trigger with phrases like "vastai security", "vastai secrets", "secure vastai", "vastai API key security".

0 0
View
instantly-incident-runbook logo
HelixDevelopment/HelixAgent

instantly-incident-runbook

Execute Instantly incident response procedures with triage, mitigation, and postmortem. Use when responding to Instantly-related outages, investigating errors, or running post-incident reviews for Instantly integration failures. Trigger with phrases like "instantly incident", "instantly outage", ...

0 0
View
configuring-load-balancers logo
HelixDevelopment/HelixAgent

configuring-load-balancers

Configure use when configuring load balancers including ALB, NLB, Nginx, and HAProxy. Trigger with phrases like "configure load balancer", "create ALB", "setup nginx load balancing", or "haproxy configuration". Generates production-ready configurations with health checks, SSL termination, sticky ...

0 0
View
building-recommendation-systems logo
HelixDevelopment/HelixAgent

building-recommendation-systems

Execute this skill empowers AI assistant to construct recommendation systems using collaborative filtering, content-based filtering, or hybrid approaches. it analyzes user preferences, item features, and interaction data to generate personalized recommendations... Use when appropriate context det...

0 0
View
perplexity-multi-env-setup logo
HelixDevelopment/HelixAgent

perplexity-multi-env-setup

Configure Perplexity across development, staging, and production environments. Use when setting up multi-environment deployments, configuring per-environment secrets, or implementing environment-specific Perplexity configurations. Trigger with phrases like "perplexity environments", "perplexity s...

0 0
View
juicebox-sdk-patterns logo
HelixDevelopment/HelixAgent

juicebox-sdk-patterns

Apply production-ready Juicebox SDK patterns. Use when implementing robust error handling, retry logic, or enterprise-grade Juicebox integrations. Trigger with phrases like "juicebox best practices", "juicebox patterns", "production juicebox", "juicebox SDK architecture".

0 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View