--- title: "Configure roles and permissions" slug: "build-ai-ready-systems-connected-systems-configure-roles-permissions" description: "Configure business role names, rbac.yaml, and capability mapping for external systems. See related articles for prerequisites, validation, and next steps." tags: ["Integration", "Governance", "Developer", "Integrator"] updated: 2026-11-30T18:59:58Z published: 2026-11-17T07:08:17Z canonical: "docs.aifabrix.ai/build-ai-ready-systems-connected-systems-configure-roles-permissions" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.aifabrix.ai/llms.txt > Use this file to discover all available pages before exploring further. # Configure roles and permissions Configure **business role names** and map **governed capabilities** (`<resourceType>:<operation>`) to those roles in `rbac.yaml`. ## Prerequisites - Datasources with `resourceType` and `exposed` capabilities defined - `aifabrix login` and `aifabrix auth status` green ## Where it lives ``` integration// rbac.yaml # recommended — roles + permissions -system.json # optional inline roles (repair merges to rbac.yaml) ``` Permissions use capability names aligned with exposure — typically **`customer:read`**, **`document:search`**, not raw OpenAPI operation ids. ## Role catalog vs Connected System RBAC | Layer | Controls | Doc | | --- | --- | --- | | **Role catalog** (one list) | Who may administer, publish, observe, or consume LLM/search | [AI Fabrix roles](/docs/operational-trust-ai-fabrix-roles) · [Platform developer access](/docs/build-ai-ready-systems-build-reference-platform-developer-access) | | **Connected System RBAC** (`rbac.yaml`) | Which capabilities Role Assistants may invoke under business role names | This page | Every role key you list in Connected System RBAC must **exist in the Role catalog** or [deploy/upload fails closed](/docs/build-ai-ready-systems-publish-certify-deployment-upload). Integration developers need catalog roles for publish and test commands. Governance operators need scopes for identity sync and certification. Business **`Admin`** in `rbac.yaml` does not grant Platform Admin rights. For LLM and platform search, grant consume permissions to **Everyone** (`aifabrix-everyone`) — do **not** enumerate every Role Assistant key on those systems. ## Builder MCP | | | | --- | --- | | **Manifest section** | `system.rolesPermissions` | | **Help topics** | `section`, `repairRules`, `dependencyGraph` | | **Repair hooks** | `rbac` | After capability or exposure changes on Business Entities, run **`aifabrix repair <systemKey> --rbac`**. Full CLI ladder: [CLI workflow](/docs/build-ai-ready-systems-validate-test-cli-workflow). ## How to set 1. **Choose business role names** — `Admin`, `Reader`, `SalesManager` (reuse enterprise vocabulary). 2. **Create `rbac.yaml`**: ``` roles: - name: Admin value: admin description: Full integration maintenance - name: Reader value: reader description: Read-only governed access - name: SalesManager value: sales-manager description: Regional sales scope permissions: - name: customer:read roles: [admin, reader, sales-manager] description: Read customer records - name: customer:search roles: [admin, sales-manager] description: Search customers within ABAC scope - name: document:read roles: [admin, reader] description: Read document metadata ``` 1. **Align permission names with exposed capabilities** — match `resourceType` from datasource JSON + operation from `exposed` block. 2. **Repair RBAC defaults**: ``` aifabrix repair --rbac --dry-run aifabrix repair --rbac aifabrix validate ``` 1. **Map roles to Entra groups for governance tests**: ``` aifabrix identity role set-groups sales-manager -e dev --groups "Sales Managers" aifabrix identity sync -e dev ``` 1. **Upload**: ``` aifabrix upload --probe ``` ## Defaults and examples | Role | value | Typical permissions | | --- | --- | --- | | Admin | `admin` | All capabilities for the system | | Reader | `reader` | `:read` and `:search` only | | SalesManager | `sales-manager` | Customer/deal read + search in scope | Enable **autoRbac** on datasource `exposed` when operations lack explicit permission scopes — validator resolves `<resourceType>:<operation>` per operation. Explicit `security` on an operation overrides autoRbac for that operation. Example **`rbac.yaml`** fragment (permissions must match root **`resourceType`** on datasources): ``` roles: - key: reader displayName: Reader permissions: - customer:read - customer:search - key: sales-manager displayName: Sales Manager permissions: - customer:read - customer:search - deal:read ``` Datasource root fields (`key`, `displayName`, `systemKey`, `entityType`, `resourceType`, `primaryKey`, `externalId`) must stay consistent with permission prefixes. ## Validate ``` aifabrix validate aifabrix verify-governance --subject-email scoped-user@example.com ``` Use a **subject user** with `sales-manager` role — not platform admin. ## Common mistakes | Mistake | Fix | | --- | --- | | Permissions without matching capabilities | Align with `exposed` after `--expose` | | RBAC only in UI | Keep `rbac.yaml` in git | | Testing governance as admin | Create scoped subject user | | Mismatched resourceType prefix | Use same token as datasource root `resourceType` | ## Limits Entra group names and identity sync timing are environment-specific. After role/group changes, always run `identity sync` before `verify-governance`. Permission strings must reference the same **`resourceType`** token set on each datasource **`key`** — mixed prefixes (`company:read` vs `customer:read`) are a common cause of green validate and red governance tests. Each datasource **`displayName`** is independent of RBAC role names — roles grant capabilities, not UI labels. After **`repair --rbac`**, diff `rbac.yaml` against **`exposed`** capabilities — orphan permissions fail governance tests even when validate passes. Example **`exposed`** and **`capabilities`** aligned with RBAC permission names: ``` { "exposed": { "filterable": ["externalId", "country"], "schema": { "externalId": "metadata.externalId", "country": "metadata.country" } }, "capabilities": [ { "key": "get", "description": "Read customer by id", "riskLevel": "low" }, { "key": "search", "description": "Search customers", "riskLevel": "low" } ] } ``` Permission strings in `rbac.yaml` use `<resourceType>:<operation>` — for example `customer:get` and `customer:search` when `resourceType` is `customer`. After upload, run **`verify-governance`** with a subject mapped to **`sales-manager`** — admin subjects hide missing permission rows. Keep **`rbac.yaml`** in version control beside datasource JSON so repair and manual edits stay auditable. When **`exposed.autoRbac`** is true, permission names still must resolve to real catalog **`resourceType`** tokens on each datasource **`key`**. Treat **`primaryKey`** and **`externalId`** on datasource JSON as prerequisites — RBAC cannot compensate for missing join identity during governance tests. ## Related - [Configure Connected System authentication](/build-ai-ready-systems-connected-systems-configure-authentication.md) - [Configure business policies](/build-ai-ready-systems-business-entities-configure-business-policies.md) - [Configure subscriptions](/build-ai-ready-systems-connected-systems-configure-subscriptions.md) - [Users, groups, and roles](/operational-trust-users-groups-roles.md) - [AI Fabrix roles](/operational-trust-ai-fabrix-roles.md) - [Deployment and upload](/build-ai-ready-systems-publish-certify-deployment-upload.md)