xiaohongshu
xiaohongshu
exa-enterprise-rbac
Configure Exa 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 Exa. Trigger with phrases like "exa SSO", "exa RBAC", "exa enterprise", "exa roles", "exa ...
Full skill instructions
Configure enterprise-grade access control for Exa integrations.
| Role | Permissions | Use Case |
|---|---|---|
| Admin | Full access | Platform administrators |
| Developer | Read/write, no delete | Active development |
| Viewer | Read-only | Stakeholders, auditors |
| Service | API access only | Automated systems |
enum ExaRole {
Admin = 'admin',
Developer = 'developer',
Viewer = 'viewer',
Service = 'service',
}
interface ExaPermissions {
read: boolean;
write: boolean;
delete: boolean;
admin: boolean;
}
const ROLE_PERMISSIONS: Record<ExaRole, ExaPermissions> = {
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: ExaRole,
action: keyof ExaPermissions
): boolean {
return ROLE_PERMISSIONS[role][action];
}
// Exa SAML setup
const samlConfig = {
entryPoint: 'https://idp.company.com/saml/sso',
issuer: 'https://exa.com/saml/metadata',
cert: process.env.SAML_CERT,
callbackUrl: 'https://app.yourcompany.com/auth/exa/callback',
};
// Map IdP groups to Exa roles
const groupRoleMapping: Record<string, ExaRole> = {
'Engineering': ExaRole.Developer,
'Platform-Admins': ExaRole.Admin,
'Data-Team': ExaRole.Viewer,
};
import { OAuth2Client } from '@exa/sdk';
const oauthClient = new OAuth2Client({
clientId: process.env.EXA_OAUTH_CLIENT_ID!,
clientSecret: process.env.EXA_OAUTH_CLIENT_SECRET!,
redirectUri: 'https://app.yourcompany.com/auth/exa/callback',
scopes: ['read', 'write'],
});
interface ExaOrganization {
id: string;
name: string;
ssoEnabled: boolean;
enforceSso: boolean;
allowedDomains: string[];
defaultRole: ExaRole;
}
async function createOrganization(
config: ExaOrganization
): Promise<void> {
await exaClient.organizations.create({
...config,
settings: {
sso: {
enabled: config.ssoEnabled,
enforced: config.enforceSso,
domains: config.allowedDomains,
},
},
});
}
function requireExaPermission(
requiredPermission: keyof ExaPermissions
) {
return async (req: Request, res: Response, next: NextFunction) => {
const user = req.user as { exaRole: ExaRole };
if (!checkPermission(user.exaRole, requiredPermission)) {
return res.status(403).json({
error: 'Forbidden',
message: `Missing permission: ${requiredPermission}`,
});
}
next();
};
}
// Usage
app.delete('/exa/resource/:id',
requireExaPermission('delete'),
deleteResourceHandler
);
interface ExaAuditEntry {
timestamp: Date;
userId: string;
role: ExaRole;
action: string;
resource: string;
success: boolean;
ipAddress: string;
}
async function logExaAccess(entry: ExaAuditEntry): Promise<void> {
await auditDb.insert(entry);
// Alert on suspicious activity
if (entry.action === 'delete' && !entry.success) {
await alertOnSuspiciousActivity(entry);
}
}
Map organizational roles to Exa permissions.
Set up SAML or OIDC integration with your IdP.
Add permission checks to API endpoints.
Track all access for compliance.
| Issue | Cause | Solution |
|---|---|---|
| SSO login fails | Wrong callback URL | Verify IdP config |
| Permission denied | Missing role mapping | Update group mappings |
| Token expired | Short TTL | Refresh token logic |
| Audit gaps | Async logging failed | Check log pipeline |
if (!checkPermission(user.role, 'write')) {
throw new ForbiddenError('Write permission required');
}
For major migrations, see exa-migration-deep-dive.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience