--- title: "Configure business policies" slug: "build-ai-ready-systems-business-entities-configure-business-policies" description: "Define ABAC dimensions and business visibility boundaries. Step-by-step for integrators — prerequisites, validate commands, and links to concept pages." tags: ["Integration", "Developer", "Integrator"] updated: 2026-11-30T18:59:17Z published: 2026-11-17T13:35:52Z canonical: "docs.aifabrix.ai/build-ai-ready-systems-business-entities-configure-business-policies" --- > ## 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 business policies Define **ABAC dimensions**, foreign keys, and protection in the Business Entity manifest and dimension catalog before protection upload and governance certification. When a datasource does not use record-scoped ABAC, set **`accessControl.abac.applicability: notApplicable`** (with rationale) so certification does not expect scenario packs. ## Prerequisites - Business Entity manifest with `fieldMappings.attributes` and top-level **`dimensions`** block - [Configure business vocabulary](/docs/build-ai-ready-systems-business-entities-configure-business-vocabulary) started ## Where it lives | Layer | Location | | --- | --- | | **Catalog** | Platform dimension catalog — `aifabrix dimension list\\|create` | | **Datasource bindings** | `<datasourceKey>.json` → top-level **`dimensions`** → `dimensionBinding` per key | | **Protection** | `integration/.protection/<datasourceKey>.yaml` — principal-to-dimension grants | | **Attributes** | `fieldMappings.attributes` — normalized fields referenced by bindings | **Not valid:** `fieldMappings.dimensions` — use top-level `dimensions` only. ## Builder MCP | | | | --- | --- | | **Manifest keys** | `dimensions`, `foreignKeys`, `accessControl.abac` (protection grants live in a separate YAML file, not this manifest) | | **UI tab** | Business Policies (`?tab=abac`) | | **Help topics** | `section`, `evidencePatterns`, `repairRules` | | **Repair hooks** | `fieldMappings`, protection upload (separate YAML) | Governance certification: **`verify-governance`** — see [CLI workflow](/docs/build-ai-ready-systems-validate-test-cli-workflow). ## How to set 1. **List or create catalog dimensions**: ``` aifabrix dimension list aifabrix dimension create --key customerRegion --display-name "Customer Region" --data-type string --value-type static aifabrix dimension create --key ownerId --display-name "Record Owner" --data-type string --value-type dynamic ``` 1. **Add bindings on Business Entity JSON** (top-level `dimensions` — each value is a dimension binding): ``` { "dimensions": { "customerRegion": { "type": "local", "field": "country", "enabled": true }, "ownerId": { "type": "local", "field": "ownerEmail", "actor": "email", "operator": "eq", "enabled": true } } } ``` 1. **Materialize fields in `metadataSchema`** — bound fields must exist on normalized metadata (index where used for ABAC). 2. **Align linked Business Entities** — child entities inherit parent dimensions via foreign keys in protection (see [Cross-system relationships](/docs/enterprise-knowledge-cross-system-relationships)). 3. **Validate and upload datasource**: ``` aifabrix validate aifabrix upload --probe ``` 1. **Protection manifests** — create YAML under `integration/.protection/<datasourceKey>.yaml`, then validate and upload: ``` aifabrix protection validate aifabrix protection validate --warnings-as-errors aifabrix protection upload ``` Full workflow and grant examples: [Protection manifests and upload](/docs/build-ai-ready-systems-build-reference-protection-manifests-upload). 1. **Governance test** — scoped subject: ``` aifabrix verify-governance --subject-email scoped-user@example.com ``` ## Defaults and examples | Key | valueType | Use when | | --- | --- | --- | | `customerRegion` | static | Regional visibility (catalog values) | | `ownerId` | dynamic | Ownership from synced field | | `department` | dynamic | Org-unit scoping | | `dataClassification` | static | Sensitivity labels | Static dimensions: create catalog values with `aifabrix dimension value create` when needed. Dimension bindings reference normalized **`fieldMappings.attributes`** fields — those fields must appear in **`metadataSchema.properties`** with correct types. The datasource **`key`**, **`displayName`**, **`systemKey`**, **`entityType`**, and top-level **`resourceType`** must remain valid while you add dimensions; **`primaryKey`** and indexed **`externalId`** are still required for recordStorage peers. ## Validate Ask the platform operator to confirm `DIMENSION_ABAC_ENFORCEMENT_ENABLED` for the target Dataplane. Its default is `false`; it controls the additional Connected System/source assignment, client-principal binding and subscription owner checks. It is separate from existing record-level ABAC and RBAC. Do not change it as an ad-hoc workaround for a failed test. Test both an entitled subject and an unassigned subject through each required search, capability and related-record path. Retain the subject, environment, correlation ID and expected/actual visibility with the governance result. If scope differs, check bindings, projected grants and the enabled enforcement path, then rerun the same scoped scenario. An admin-only pass is insufficient. ``` aifabrix dimension list aifabrix validate aifabrix protection validate --warnings-as-errors aifabrix verify-governance --subject-email ``` ## Common mistakes | Mistake | Fix | | --- | --- | | Dimensions under fieldMappings | Move to top-level `dimensions` | | Catalog key typo | Match dimension create key exactly | | Admin user for verify-governance | Scoped test subject | | Missing identity sync | `identity sync -e <env>` after group mapping | ## Limits Catalog → dataplane sync may lag after `dimension create`. Re-list before blaming validate errors on typos. Dimension bindings do not replace **`resourceType`** or **`entityType`** on the datasource root — they layer ABAC on top of normalized metadata that already passes record or document storage validate rules. Foreign-key inherited dimensions require parent datasources to expose the same catalog keys and indexed **`externalId`** fields used in protection scenarios. When **`verify-governance`** returns unexpected row counts, inspect **`protection show`** output before changing dimension bindings — the manifest may be correct while identity sync lagged. Static dimensions require catalog values before protection upload — create values with `dimension value create` and re-list the catalog. Dynamic dimensions read from synced fields — ensure **`fieldMappings.attributes`** populates bound fields on every sync pass. Document **`displayName`** on the datasource helps operators correlate protection **`datasourceKey`** files with business entities during reviews. Run **`dimension list`** after every create — catalog lag is indistinguishable from typos in validate output until you re-list. Index metadata fields used in bindings before **`upload --probe`** — unindexed **`externalId`** or region fields produce governance passes that do not match production query behavior. Re-run **`datasource validate`** after editing **`dimensions`** — offline validate catches binding typos faster than protection upload. ## Related - [Configure Connected System authentication](/build-ai-ready-systems-connected-systems-configure-authentication.md) - [Configure roles and permissions](/build-ai-ready-systems-connected-systems-configure-roles-permissions.md) - [Configure business vocabulary](/build-ai-ready-systems-business-entities-configure-business-vocabulary.md) - [Dimensions and protection](/operational-trust-dimensions-protection.md) - [Cross-system relationships](/enterprise-knowledge-cross-system-relationships.md)