Skip to main content
Contextual AI is excited to introduce Role-Based Access Control (RBAC) in Preview. RBAC is exclusive to customers on our Provisioned Throughput plan. Please contact your account team for more information. Admins can now define custom roles with tailored permission bundles across key objects — including Agents, Datastores, Billing, and other administrative features. Permissions can be scoped to specific Agents or Datastores, enabling finer-grained governance so every team member has the right level of access for their role. Groups make access management even simpler: add multiple users to a Group, then assign that Group to a Role.

Roles

First, click Settings under Admin in the side-panel. Screenshot 2025-11-12 at 2.23.28 PM.png Next, click Roles under Access Control. Untitled 2.001.jpeg

Default Roles

Your tenant comes with three default roles:
  • Admin: Default role with full access to agents, datastores, and workspace settings.
  • User: Default role that every new user is automatically assigned to. This role does not come with any access to agents or datastores.
  • Power User: Default role that grants read access to all agents and datastores.
By default, all new users are given the User role. They won’t be able to access agents or datastores until they’re assigned a Role with higher-level permissions. Screenshot 2025-11-12 at 4.00.25 PM.png

Creating a Custom Role

You can create custom roles to meet your governance needs. Here are examples of custom roles you can create:
  • Billing Admin – Access to billing and usage features
  • Data Ingestor – Manage and ingest documents within specific Datastores
  • Agent User – Query and interact with designated Agents
  • Agent Admin – Maintain and optimize designated Agents
First, click “New Role” in the Roles page. Screenshot 2025-11-12 at 2.36.20 PM.png Second, input a Role Name and Description. Click “Create role”. Screenshot 2025-11-12 at 2.48.07 PM.png

Configuring Role Permissions

After creating a Role, you will be automatically directed to the Role page. The first tab is for you to configure permissions. Click “Add Permission” to associate a permission with the Role. Screenshot 2025-11-12 at 2.49.20 PM.png You will need to select what type of object you want to grant access to. You have three options:
  • Agents: Select this to give permissions on an agent
  • Datastores: Select this to give permissions on a Datastore
  • Admin Tools: Select this to give access to admin functions like billing and annotating feedback.
Screenshot 2025-11-12 at 2.54.03 PM.png You can then configure permissions relevant to the object type you selected.

Configuring Agent Permissions

On the left, you’ll see a list of available permissions. Each defines what actions the Role can take.
  • Query Agents: This permission will let assigned users query the agent.
  • Manage Agents: This permission will let assigned users query the agent and edit its configs. It is a superset of Query Agents.
  • Create Agents: This permission will let assigned users create an agent.
On the right, you’ll see the objects these permissions apply to.
  • For Query Agents and Manage Agents, you can select specific agents or select All Agents.
  • TheCreate Agents permission will apply globally.
Screenshot 2025-11-12 at 3.00.35 PM.png

Configuring Datastore Permissions

On the left, you’ll see a list of available permissions. Each defines what actions the Role can take.
  • Read Documents: This permission will let assigned users see the datastore and read documents inside.
  • Manage Documents: This permission will let assigned users read documents, as well as upload/delete them. It is a superset of Read Documents.
  • Manage Datastores: This permission will let assigned users manage documents, as well as edit the datastore configs. It is a superset of Manage Documents.
  • Create Datastores: This permission will let assigned users create a datastore.
On the right, you’ll see the objects these permissions apply to.
  • For Read Documents , Manage Documents and Manage Datastores, you can select specific datastores or select All Datastores.
  • TheCreate Datastores permission will apply globally.
Screenshot 2025-11-12 at 3.04.27 PM.png Note that if a user is granted Query Agents permission on an Agent but does not have Read Documents access to its linked Datastores, they will still be able to query data from those Datastores through the agent.

Configuring Admin Permissions

On the left, you’ll see a list of available permissions. Each defines what actions the Role can take.
  • Create Agents: This permission will let assigned users create an agent.
  • Create Datastores: This permission will let assigned users create a datastore.
  • Manage Billing & Usage: This permission will let assigned users view and configure the Billing page.
  • Manage Feedback Annotation: This permission will let assigned users view and annotate agent-level feedback.
All these permissions apply globally. Screenshot 2025-11-12 at 3.11.26 PM.png

Review your Permissions

Review all the permissions that you have provisioned for the Role. You can add more permissions or remove existing ones by clicking on the three dots beside each permission and clicking “Remove”. Screenshot 2025-11-12 at 3.13.23 PM.png

Assigning a User to a Role

To assign a user to the Role, click the Assigned Users tab in the Roles Page. Screenshot 2025-11-12 at 3.14.24 PM.png Next, click “Assign Users”. You’ll be able to select multiple users to add to the role. Click “Confirm”. Screenshot 2025-11-12 at 3.15.16 PM.png Third, review the users you’ve added. You can add more users or remove existing ones by clicking on the three dots beside a user and clicking “Remove”. Screenshot 2025-11-12 at 3.16.16 PM.png You’re all set! The assigned users now have the access defined in this Role.

Dealing with Role Conflicts

If a user is assigned to two roles with different permissions on the same object, we will take the union of permissions. Example:
  • User is assigned to Role A which is given Query Agents on All Agents
  • User is also assigned to Role B which is given the higher-level Manage Agents on Agent A.
  • Outcome:
    • User will have Manage Agents on Agent A
    • User will have Query Agents on every other agent.

Managing Roles

After creating a Role, you can return to its configuration page at any time. To do so, navigate to the Roles page and click on the Role you want to edit. Screenshot 2025-11-12 at 3.30.02 PM.png You can also delete a Role by clicking on the three dots beside it and clicking “Delete”. Screenshot 2025-11-12 at 3.26.12 PM.png

Creating Agents and Datastores

If a user has created an Agent or Datastore, an owner Role will automatically be created with Manage Agent or Manage Datastore permissions. The user will automatically be assigned to that Role. Screenshot 2025-11-12 at 3.45.49 PM.png

Groups

Groups can help simplify access management. You can add multiple users to a Group and assign the Group to a Role. First, click Settings under Admin in the side-panel. Screenshot 2025-11-12 at 2.23.28 PM.png Next, click “Groups” under “Access Control”. Untitled 4.001.jpeg

Creating a Group

Click “New Group”. Screenshot 2025-11-12 at 3.36.38 PM.png Fill in Group Name and Description Screenshot 2025-11-12 at 3.37.52 PM.png Click “Create group”. You’ll be automatically redirected to the Group page.

Assigning Users to the Group

Click the tab “Assigned Users”. Screenshot 2025-11-12 at 3.40.01 PM.jpg Click “Assign Users” and select the users you want to include in the Group. Click “Confirm”. Screenshot 2025-11-12 at 3.39.02 PM.png Review the users you have added. You can add more users to the Group or remove existing users by clicking the three dots and clicking “Remove”. Screenshot 2025-11-12 at 3.39.32 PM.png

Associating a Group with a Role

Navigate to the first tab: “Roles”. Screenshot 2025-11-12 at 3.43.47 PM.png Click “Add Roles”. You can select roles to associate with your Group. Screenshot 2025-11-12 at 3.41.42 PM.png Click “Add Roles”. You can add more roles or remove existing ones by clicking on the three dots and clicking “Remove”. Screenshot 2025-11-12 at 3.46.40 PM.png You’re set! Members of the Group now have have the access defined in the attached Roles.

Managing a Group

After creating a Group, you can return to its configuration page at any time. To do so, navigate to the Groups page and click on the Group you want to edit. Screenshot 2025-11-12 at 3.48.21 PM.png You can also delete a Group by clicking on the three dots beside it and clicking “Delete”. Screenshot 2025-11-12 at 3.48.37 PM.png