Agentic AI Suite

If role-based access control (RBAC) is enabled in the Arango Contextual Data Platform, AutoRAG checks a permission for every request, except for the health check. The permission is an action on the database that the AutoRAG service is installed for, for example, ai:retriever.query on ai:database:sales.

To use AutoRAG, you thus need:

  • A predefined role that grants the action, which is ai-user for running queries and working with the query history, and ai-developer for also changing the model configuration.
  • A scope for the role assignment that covers the database of the project, like ai:database:sales, or all databases.
  • Read access to the database in ArangoDB, because AutoRAG reads the data with your token. See Permissions in ArangoDB.

Actions

ActionAllowsResourcePredefined roles
ai:retriever.queryRun queries and list, get, and delete the query historyai:database:<database>, the database that the AutoRAG service is installed forai-user, ai-developer
ai:retriever.config.manageChange the provider, model, and secret profile settingsai:database:<database>, the database that the AutoRAG service is installed forai-developer

The query history belongs to the AutoRAG service, not to the user who ran the query. Runs are not attributed to users. Everyone who holds ai:retriever.query on the database can list, read, and delete every run of the AutoRAG service of that database.

The resource is always the database that the service is installed for. It is taken from the configuration of the service and not from your request, so you cannot direct the check to a different database. Projects are not resources of their own, and the {project} path segment of the model configuration endpoint doesn’t change the resource. If you have access to a database, you have access to all of its projects.

Permissions per endpoint

EndpointActionPredefined roles
GET /v1/healthNone, any authenticated user–
POST /v1/graphrag-queryai:retriever.queryai-user, ai-developer
POST /v1/graphrag-query-streamai:retriever.queryai-user, ai-developer
GET /v1/retriever-runsai:retriever.queryai-user, ai-developer
GET /v1/retriever-runs/{run_id}ai:retriever.queryai-user, ai-developer
DELETE /v1/retriever-runs/{run_id}ai:retriever.queryai-user, ai-developer
PUT /v1/projects/{project}/model-config/credentialsai:retriever.config.manageai-developer

Permissions in ArangoDB

Unlike other AI services, AutoRAG always reads the data of a project in ArangoDB with your token, independent of whether RBAC is also enabled for the ArangoDB core database system (ArangoDB RBAC). To run queries and to list or get runs, you therefore need read access to the database in addition to the AutoRAG action:

  • ArangoDB RBAC disabled: A classic permission of read-only or read/write access to the project database.
  • ArangoDB RBAC enabled: A coredb-* role like coredb-reader with a scope that covers the project database.

Read access is enough. AutoRAG writes the query history, the answer cache, and the indexes and Views that a query needs with its own service identity, so you don’t need write access. AutoRAG checks your read access before it starts a query and returns 403 if it is missing.

Deleting a run and changing the model configuration don’t access the data with your token and only require the AutoRAG action.

Errors

HTTP statusCause
401No Authorization: Bearer <token> header, or the token is invalid or expired. Also if ArangoDB rejects your token during a query
403You lack the action on the database. The message names the action and the resource, for example Not permitted: ai:retriever.query on ai:database:sales. Also if you have no read access to the database in ArangoDB, with a message like Database access denied
503The authorization service of the platform cannot be reached. The request is not carried out, and you can retry it

Example

Alice holds the ai-user role with a scope of the sales database (ai:database:sales), and Bob holds the ai-developer role with a scope of the finance database. Both have read access to their database in ArangoDB. AutoRAG is installed for the sales database.

RequestAliceBob
POST /v1/graphrag-queryAllowed403, his scope covers a different database
GET /v1/retriever-runsAllowed403
DELETE /v1/retriever-runs/{run_id}Allowed403
PUT /v1/projects/{project}/model-config/credentials403, her role doesn’t grant the action403, his scope doesn’t cover sales

For Bob to change the model configuration of this AutoRAG service, add ai:database:sales to the scope of his role assignment. In the web interface, this is the Databases resource type.