Agent skill · software engineering · jeremylongshore

maintainx-enterprise-rbac

Configure enterprise role-based access control for MaintainX integrations.

Why this skill is useful

Provides specific role-based access control patterns and middleware for MaintainX integrations that the AI wouldn't reliably generate on its own.

What it needs

Requires node installed locally. Requires maintainx account access. About 4k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.

What this skill does

MaintainX Enterprise RBAC Overview Configure enterprise role-based access control for MaintainX integrations with role definitions, location-scoped permissions, and audit logging. Prerequisites MaintainX Enterprise plan Understanding of RBAC concepts Node.js 18+ MaintainX Role Hierarchy Instructions Step 1: Role Definitions Step 2: Permission Middleware Step 3: Scoped API Keys Create separate API keys per role to enforce server-side access control: Step 4: User and Team Management Step 5: Audit Logging Output Role definitions mapping roles to resource permissions and scopes Express middleware enforcing RBAC on all API proxy routes Location-scoped and assignee-scoped query filtering Scoped API keys per role for defense in depth Audit logging for all access control decisions Error Handling Issue Cause Solution ------- ------- ---------- 403 on valid user Missing permission for action Check ROLEPERMISSIONS mapping Empty results for manager Location scope filter too narrow Verify locationIds in auth context Scoped key missing Environment variable not set Add MAINTAINXAPIKEY{ROLE} to env Audit log gaps Middleware not applied to route Ensure authorize() is on all routes Resources MaintainX Enterprise OWASP Access Control Cheat Sheet MaintainX API Reference Next Steps For complete platform migration, see maintainx-migration-deep-dive. Examples Check if a user can perform an action:

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills jeremylongshore/maintainx-enterprise-rbac

View the source on GitHub

Browse the @skills marketplace