Agentic AI Suite

If role-based access control (RBAC) is enabled in the Arango Contextual Data Platform, a Graph Analytics engine checks a permission for the requests to its Engine API before it does any work. The permission is the ai:gral.execute action on the Graph Analytics shared service, ai:service:arangodb-gral.

To use a Graph Analytics engine, you thus need:

  • The ai-user or ai-developer role. Both grant ai:gral.execute. Starting and stopping an engine requires ai-developer.
  • A scope for the role assignment that covers the Graph Analytics shared service (ai:service:arangodb-gral), or all shared services. A scope that only covers a database is not enough.
  • Access to the data in ArangoDB, because the engine loads graphs and stores results as your user. See Permissions in ArangoDB.

Actions

ActionAllowsResourcePredefined roles
ai:gral.executeUse a running engine: load graphs, run algorithms, read graphs, jobs, and results, store results, and delete graphs and jobsai:service:arangodb-gralai-user, ai-developer

The resource is always the Graph Analytics shared service. There is no resource per engine or per database.

You start, list, and stop engines via the Arango Control Plane (ACP), which checks its own actions. See Role-based access control for the Arango Control Plane.

Warning:

Graphs and jobs in an engine don’t belong to the user who created them. Anyone who holds ai:gral.execute can read, run algorithms on, store the results of, and delete the graphs and jobs of other users of the same engine. The data in ArangoDB remains protected, because the engine accesses it as the user who sends the request.

Permissions per endpoint

EndpointActionPredefined roles
POST /v1/loaddataai:gral.executeai-user, ai-developer
POST /v1/loaddataaqlai:gral.executeai-user, ai-developer
POST /v1/pagerankai:gral.executeai-user, ai-developer
POST /v1/wccai:gral.executeai-user, ai-developer
POST /v1/sccai:gral.executeai-user, ai-developer
POST /v1/betweennesscentralityai:gral.executeai-user, ai-developer
POST /v1/linerankai:gral.executeai-user, ai-developer
POST /v1/labelpropagationai:gral.executeai-user, ai-developer
POST /v1/attributepropagationai:gral.executeai-user, ai-developer
POST /v1/storeresultsai:gral.executeai-user, ai-developer
GET /v1/jobsai:gral.executeai-user, ai-developer
GET /v1/jobs/{job_id}ai:gral.executeai-user, ai-developer
DELETE /v1/jobs/{job_id}ai:gral.executeai-user, ai-developer
GET /v1/graphsai:gral.executeai-user, ai-developer
GET /v1/graphs/{graph_id}ai:gral.executeai-user, ai-developer
DELETE /v1/graphs/{graph_id}ai:gral.executeai-user, ai-developer

Permissions in ArangoDB

ai:gral.execute only decides whether you can use an engine. It doesn’t grant access to data. The engine loads graphs and stores results with a short-lived token of your user, so ArangoDB applies your own permissions:

  • ArangoDB RBAC disabled: You need the classic read-only permission for the database to load data, and read/write to store results.
  • ArangoDB RBAC enabled: You need a coredb-* role that grants db:Read to load data and db:WriteData to store results, with a scope that covers the database, its collections, and its graphs. The graphs are needed because loading a graph by name reads the graph definition first.

If you lack these permissions, the load or store job fails with an error from ArangoDB, for example, 403, or 404 with graph not found if you cannot see the graph.

Errors

HTTP statusCause
401No Authorization: Bearer <token> header, the token is invalid or expired, or the authentication service of the platform cannot be reached
403You lack ai:gral.execute on ai:service:arangodb-gral. The message names the action and the resource, for example Not permitted: ai:gral.execute on ai:service:arangodb-gral: Permission denied
503The authorization service of the platform cannot be reached. The request is not carried out

Example

Alice holds the ai-user role and Bob the ai-developer role, both with a scope of all shared services. Carol holds the ai-user role with a scope of the sales database (ai:database:sales). All three can read and write the sales database in ArangoDB.

RequestAliceBobCarol
POST /_platform/acp/v1/graphanalytics (start an engine)403, her role doesn’t grant ai:acp.service.manageAllowed403
POST /v1/loaddata with a graph of the sales databaseAllowedAllowed403, her scope doesn’t cover ai:service:arangodb-gral
POST /v1/pagerankAllowedAllowed403
POST /v1/storeresults into the sales databaseAllowedAllowed403