Access Control
Role feature permissions and their defaults, people picker visibility, Entra ID group sync, promoting admins, admin capabilities, and the ACL migrations for older instances.
How roles, groups, and sharing behave for users is described on the Access Control feature page. This page covers what an admin sets up.
Feature permissions
Each role holds one set of switches per permission type. You can change them in three places:
- In IntelliAsk, through the Admin Settings button in the agents, prompts, MCP servers, memories, and skills panels (admins only).
- In the IntelliAsk Admin Panel, under Users & Roles, for any role including custom ones.
- In the
interfaceblock ofintelliask.yaml. These keys seed the permissions of the built-inUSERrole at startup only, so they cannot express different settings per custom role.
The table lists each permission type, the interface key that seeds it, its actions, and which actions the USER role has by default.
| Permission type | interface key | Actions | On by default for USER |
|---|---|---|---|
AGENTS | agents | USE, CREATE, SHARE, SHARE_PUBLIC | USE, CREATE |
PROMPTS | prompts | USE, CREATE, SHARE, SHARE_PUBLIC | USE, CREATE |
MCP_SERVERS | mcpServers | USE, CREATE, SHARE, SHARE_PUBLIC, CONFIGURE_OBO | USE, CREATE |
SKILLS | skills | USE, CREATE, SHARE, SHARE_PUBLIC | USE, CREATE |
REMOTE_AGENTS | remoteAgents | USE, CREATE, SHARE, SHARE_PUBLIC | none |
SHARED_LINKS | sharedLinks | CREATE, SHARE, SHARE_PUBLIC | CREATE, SHARE |
SCHEDULES | schedules | USE, CREATE | USE, CREATE |
MEMORIES | memories | USE, CREATE, UPDATE, READ, OPT_OUT | all |
BOOKMARKS | bookmarks | USE | USE |
MULTI_CONVO | multiConvo | USE | USE |
TEMPORARY_CHAT | temporaryChat | USE | USE |
RUN_CODE | runCode | USE | USE |
WEB_SEARCH | webSearch | USE | USE |
FILE_SEARCH | fileSearch | USE | USE |
FILE_CITATIONS | fileCitations | USE | USE |
MARKETPLACE | marketplace | USE | none |
PEOPLE_PICKER | peoplePicker | VIEW_USERS, VIEW_GROUPS, VIEW_ROLES | all |
SHARE lets a role share with specific users, groups, or roles; SHARE_PUBLIC lets it share with everyone on the instance. CONFIGURE_OBO allows setting up On-Behalf-Of token exchange on an MCP server, which forwards users' delegated tokens to that server, so it is off by default.
People picker
The PEOPLE_PICKER actions control which kinds of principal a role can find in the share dialog's search. Hiding roles is common when sharing by role should stay an admin concern:
This only changes what the search shows. Existing shares with a hidden principal type keep working. See interface.peoplePicker.
Entra ID group sync
Groups from Microsoft Entra ID are synced into IntelliAsk when a user signs in through OpenID Connect with Entra. This requires both OPENID_REUSE_TOKENS=true (token reuse) and USE_ENTRA_ID_FOR_PEOPLE_SEARCH=true (see Microsoft Graph API / Entra ID Integration). IntelliAsk reads the user's group memberships from Microsoft Graph at each login and stores each group with its Entra object ID, so a group that is shared with stays the same group even if it is renamed. On-premises Active Directory groups are available this way once they are synchronized to Entra ID (for example with Entra Connect). Set up the provider with Azure / Entra ID and token reuse with OpenID Connect Token Reuse.
LDAP logins do not import groups
The LDAP/AD authentication strategy authenticates users
only; it does not read memberOf or create groups. To use AD groups in IntelliAsk, sign users in
through Entra ID OpenID Connect, or manage local groups through the admin API.
Groups do not carry feature permissions: whether a user can create agents, run code, use web search, and so on comes from their role. To drive roles from directory groups, use OpenID role sync.
Custom roles
Beyond USER and ADMIN, administrators can create custom roles with their own feature-permission matrix. Custom roles are managed under Users & Roles in the IntelliAsk Admin Panel or through the /api/admin/roles API.
One role per user
Each user holds exactly one role (stored on the user as role). Assigning a user to a role
replaces their previous role, and removing them from a role returns them to USER. Feature
permissions are resolved from that single role only; they are not inherited from groups.
If a set of users needs a different feature matrix, give them a dedicated role.
There are two ways to put a user into a custom role:
- Manually: change the user's role under Users & Roles in the Admin Panel (or
POST /api/admin/roles/{name}/memberswith{ "userId": "..." }). - Automatically from your identity provider: with OpenID role sync, the role is set from a token claim on every OpenID login.
Groups cannot be assigned a role directly. To give the members of a group a custom role, either add each member to the role, or map the group to the role in your identity provider and use OpenID role sync.
Assign roles from your identity provider
When users sign in with OpenID Connect (for example Microsoft Entra ID), IntelliAsk can set each user's role from a claim in their token. The role is re-evaluated on every login, so changes in the identity provider (for example moving a user between AD groups) are picked up automatically.
How matching works:
- Claim values are matched against IntelliAsk role names (case-insensitive). Values that don't correspond to a role in
OPENID_ROLE_SYNC_ROLE_PRIORITYorOPENID_ROLE_SYNC_FALLBACK_ROLEare ignored. - Every role listed in
OPENID_ROLE_SYNC_ROLE_PRIORITYandOPENID_ROLE_SYNC_FALLBACK_ROLEmust already exist. Create the custom roles first, otherwise OpenID login fails with a "configured roles do not exist" error. - Because a user holds one role, a user matching several roles gets the first one in priority order.
- Role sync can never assign
ADMIN. UseOPENID_ADMIN_ROLE(and its_PARAMETER_PATH/_TOKEN_KINDsettings) for admin elevation. - Every IdP-driven role change is recorded in the audit log as
user.role_changed.
Mapping Active Directory groups to roles (Entra ID)
The recommended approach is Entra App Roles: in the IntelliAsk app registration, create app
roles whose Value equals the IntelliAsk role name (e.g. DevOps), assign your AD / Entra
groups to those app roles under Enterprise applications → Users and groups, and set
OPENID_ROLE_SYNC_CLAIM=roles. The group-to-role mapping then lives entirely in Entra.
Using OPENID_ROLE_SYNC_CLAIM=groups also works, but the groups claim carries group object
IDs (GUIDs) by default, so the IntelliAsk role names would have to match those values. Group
overage (users in too many groups for the token) is resolved via Microsoft Graph automatically.
See the OpenID Connect environment variables for the full reference.
Promote another admin
In a single-tenant deployment, the first account registered gets the ADMIN role. Tenant-scoped deployments never promote their first user; provision tenant admins through a trusted administrative flow. To make another existing user an admin, change their role under Users & Roles in the IntelliAsk Admin Panel, or set the role directly in MongoDB:
Have the user sign out and back in afterwards. With OpenID Connect you can also assign ADMIN from an IdP role or group with OPENID_ADMIN_ROLE; see the .env reference.
Admin capabilities
Capabilities are granted to a user, group, or role through the admin API (/api/admin/grants); the IntelliAsk Admin Panel does not manage them. Users with the ADMIN role hold all of them implicitly; anyone else needs access:admin in addition to the capabilities for what they manage. Each manage: capability implies the matching read: one, including per section: manage:configs:endpoints also grants read:configs:endpoints. Someone with only section-scoped config access gets configuration responses filtered to the sections they can read; with no config read access at all, they get 403.
| Capability | Allows |
|---|---|
access:admin | Using the admin API |
read:users, manage:users | Viewing and changing user accounts |
read:groups, manage:groups | Viewing and changing groups and their members |
read:roles, manage:roles | Viewing and changing roles and their permissions |
read:configs, manage:configs | Viewing and changing configuration; read:configs:<section> and manage:configs:<section> limit it to one top-level intelliask.yaml section |
assign:configs:user, assign:configs:group, assign:configs:role | Assigning configuration overrides to that kind of principal |
read:agents, manage:agents | Viewing and moderating every agent |
read:prompts, manage:prompts | Viewing and moderating every prompt |
read:skills, manage:skills | Viewing and moderating every skill |
read:sharedlinks, manage:sharedlinks | Viewing and moderating every shared link |
manage:mcpservers | Managing MCP servers instance-wide |
manage:code_environments | Enrolling and revoking deployment-owned code execution workers |
read:usage | Viewing usage data |
read:insights | Viewing Insights for every agent |
read:audit_log | Viewing, verifying, and exporting the grant audit log. It is append-only, so there is no manage: counterpart |
read:assistants and manage:assistants also exist but are reserved; nothing enforces them yet.
Group membership cache
To check permissions, IntelliAsk looks up which groups a user belongs to and caches the result for five minutes. Group membership changes clear the affected entries right away. The user's role is not cached. Cache or lock failures fall back to the database and never block a permission check.
| Key | Type | Description | Example |
|---|---|---|---|
| USER_PRINCIPALS_CACHE_TTL_MS | number | How long, in milliseconds, a user's group memberships are cached. 0 disables the cache. Default: 300000 (5 minutes). | USER_PRINCIPALS_CACHE_TTL_MS=300000 |
| USER_PRINCIPALS_LOCK_TTL_MS | number | Redis deployments only. Lock lifetime in milliseconds that stops several replicas from rebuilding the same cache entry at once. 0 disables only the locking. Default: 5000. | USER_PRINCIPALS_LOCK_TTL_MS=5000 |
| USER_PRINCIPALS_LOCK_WAIT_MS | number | Redis deployments only. How long, in milliseconds, a replica waits for another one to finish building the entry. Defaults to USER_PRINCIPALS_LOCK_TTL_MS. | USER_PRINCIPALS_LOCK_WAIT_MS=5000 |
Admin Insights
The Insights dashboard is off by default. Set ENABLE_INSIGHTS=true in .env and restart IntelliAsk; while it is off, the Insights routes answer 404 and the sidebar entry stays hidden.
Admins can open it as soon as it is enabled. To let others in, either grant read:insights (every agent) through the admin API, or turn on View insights for specific people or groups in an agent's share dialog. Only admins can grant View insights, the person also needs access to the agent itself, and it cannot be granted to everyone. Insights shows names, email addresses, and the first message of recent conversations, so grant it accordingly.
Every Insights query is scoped to the viewer's tenant, and custom date ranges are limited to 30 days.
Migrating from pre-ACL versions
Versions before v0.8.0-rc3 used a simpler ownership model for agents and prompts. After upgrading, run the migrations so existing agents and prompts stay accessible; IntelliAsk warns at startup when it finds unmigrated agents. Shared links moved to the same system later, so instances that have shared links from before then should run the shared link migration too.
Start with a dry run to see what would change, then run the migration. The :batch variants process 50 records at a time, which helps on large databases.
Last updated on