Mapping Okta, Entra ID and OIDC claims to ontology roles
Naditu does not ask administrators to maintain a parallel user list. Incoming MCP calls present short-lived OIDC tokens issued by your identity provider (or exchanged via OAuth 2.1 token exchange through your internal MCP gateway), carrying group and attribute claims.
Policy bindings map directory claims directly to row-level territory or plant filters and column-level visibility rules. When an employee moves teams in Entra ID or Okta, their AI access updates immediately on the next query.
{
"version": "v14",
"identity_provider": "oidc_enterprise",
"bindings": {
"sales.emea": {
"match_claim": "groups contains okta:group:sales-emea",
"row_filter": "Customer.region == EMEA",
"allow_columns": "Order.quoted_price, Order.due_date, Order.status_label",
"mask_columns": "Item.unit_cost, Customer.credit_limit"
},
"finance.global": {
"match_claim": "groups contains entra:group:finance-global",
"row_filter": "Customer.active == true",
"allow_columns": "Order.quoted_price, Item.unit_cost, Customer.credit_limit, Invoice.paid",
"mask_columns": "none"
},
"plant.planning": {
"match_claim": "groups contains entra:group:plant-planning",
"row_filter": "WorkOrder.plant in caller.assigned_plants",
"allow_columns": "WorkOrder.machine, WorkOrder.scrap_pct, Order.due_date",
"mask_columns": "Order.quoted_price, Item.unit_cost, Customer.credit_limit"
}
}
}Closed tables that no role—including admins—can open to AI
Every enterprise holds tables that have no business entering an LLM context window under any prompt: executive payroll ledgers, statutory personnel files, medical leave records, litigation holds and raw credential stores.
In Naditu, closed-table rules sit above role bindings. Even if a caller holds Finance or ontology administrator privileges, any query path touching a closed table (such as HRP_PAYROLL or Logo Bordro Plus salary tables) is refused before reaching the database, and the refusal is written to the audit log.
Zero database I/O on blocked tables
The planner rejects closed-table references during AST resolution. Neither rows nor row counts are ever read or inferred.
Withheld rows vs. masked columns
Withheld rows are excluded at SQL/API predicate level; restricted columns on permitted rows are replaced in memory with "masked" prior to MCP serialization.
Interactive assistants vs. unattended scheduled agents
An assistant acting interactively for a signed-in finance manager and a cron agent running at 02:00 AM carry fundamentally different risk profiles. Treating both under a shared static API key either over-privileges background bots or blocks interactive work.
Naditu separates callers into explicit actor classes so background workflows can read operational state and draft notifications while remaining barred from PII exposure or unattended ERP mutations.
- OperationRead records within caller row & column scopeAssistant (for a signed-in person)AllowedScheduled agent (unattended)Allowed (with PII & margin masks)Ontology / Business ownerAllowed
- OperationRead closed tables (payroll, personnel files)Assistant (for a signed-in person)Never (refused & logged)Scheduled agent (unattended)Never (refused & logged)Ontology / Business ownerNever via AI / MCP
- OperationMutate operational tables via SQL queryAssistant (for a signed-in person)NeverScheduled agent (unattended)NeverOntology / Business ownerNever
- OperationDraft email or operational summaryAssistant (for a signed-in person)AllowedScheduled agent (unattended)AllowedOntology / Business ownerAllowed
- OperationWrite a record back through official ERP APIAssistant (for a signed-in person)With named human approvalScheduled agent (unattended)Never (refused pre-ERP)Ontology / Business ownerAllowed / Approver
- OperationModify ontology term, link or policy ruleAssistant (for a signed-in person)Proposes onlyScheduled agent (unattended)Proposes onlyOntology / Business ownerWith named approval & version
| Operation | Assistant (for a signed-in person) | Scheduled agent (unattended) | Ontology / Business owner |
|---|---|---|---|
| Read records within caller row & column scope | Allowed | Allowed (with PII & margin masks) | Allowed |
| Read closed tables (payroll, personnel files) | Never (refused & logged) | Never (refused & logged) | Never via AI / MCP |
| Mutate operational tables via SQL query | Never | Never | Never |
| Draft email or operational summary | Allowed | Allowed | Allowed |
| Write a record back through official ERP API | With named human approval | Never (refused pre-ERP) | Allowed / Approver |
| Modify ontology term, link or policy rule | Proposes only | Proposes only | With named approval & version |
Engineering deep dives
Related articles from the blog
Agent harness vs ontology: what each layer solves
An agent harness runs the model loop, tool calls and retries. An ontology defines what company data means, how tables join and what the agent is allowed to do.
Nous Hermes Agent for enterprise bots: patterns and risks
Evaluating Nous Research Hermes Agent for enterprise chat bots: post-turn skill review, memory caps, static MCP identity gaps, and shared memory leak risks.
Self-hosted Claude Managed Agents: architecture and limits
Self-hosted Claude Managed Agents explained: cma-server, PostgreSQL 16, worker bash isolation, three credentials, and what still leaves your network.