Skip to main content

Atoti Intelligence Essentials

This is part of the Atoti Intelligence Essentials offer.
atoti.server.authorizations is experimental and may change in future versions without notice.
Each gated tool declares a resource and an action, such as calculatedMember:create. atoti.server.authorizations states which roles may use which pairs, so a pair stands for a capability. It replaces the atoti.ai.tools.* properties of Atoti Intelligence 6.2.2 and 6.2.3. It gates the Atoti Intelligence chat and content tools. What each resource and action authorizes lists the capabilities. It does not gate tools you add to your application. A denied tool is hidden from the chat’s tools, tool search and the MCP tools/list response, and refused if called.

When is the system property required?

Setting atoti.server.authorizations, even to an empty list, requires the JVM system property -Dactiveviam.feature.experimental.authorizations.enabled=true, or the application fails at startup. It cannot go in application.yml. When atoti.server.authorizations is not set, the defaults apply without it.

How a statement is written

atoti.server.authorizations is a list of statements, each with three required keys: The resources are those of the installed tools. Naming a resource no installed tool acts on stops the startup. The actions are create, read, update and delete. See what each resource and action authorizes for the capability behind each pair. * stands for a whole resource or action: *:create, calculatedMember:* and *:* are valid, calc*:read is not. In YAML, quote the entry: an unquoted * is read as an alias.

How statements combine

A user can use a tool only if a statement matching one of their roles allows it and none denies it. Roles add up: a user with several roles gets the statements of all of them. For example, with three roles:
The outcomes are:

What is the default behavior out of the box?

When the property is not set, these statements apply:
ROLE_USER and ROLE_ADMIN can use every read capability, run, find and remove Auto-Explain results, and clear the chat history. No tool that creates, updates or deletes anything else is allowed, such as creating or changing calculated members, or creating dashboards. Setting the property replaces the defaults: restate them to keep them, without the entries of tools the server does not install.

How to grant more tools

To also let ROLE_ADMIN create, update and delete calculated members, restate the defaults and add a statement:

How to switch every gated tool off

An empty list denies every tool that the server installs to every role:
An empty authorizations: node does the same.

What can each resource and action authorize?

A statement names a resource, which is a kind of object the chat and MCP tools work on, and an action, which is what a tool does to it. The actions mean: Each resource supports only some of these actions: The dashboard resource needs a Content Server. Only calculatedMember and dashboard support update.

How to set the property from environment variables

Spring’s indexed form addresses each statement and each roles and authorization entry by position. These variables allow every tool to ROLE_USER:
  • ATOTI_SERVER_AUTHORIZATIONS_0_ROLES_0=ROLE_USER
  • ATOTI_SERVER_AUTHORIZATIONS_0_EFFECT=ALLOW
  • ATOTI_SERVER_AUTHORIZATIONS_0_AUTHORIZATION_0=*:*
A source of higher priority, such as an environment variable or a profile, replaces the whole list of the lower sources. Only the winning list is checked and applied.

What makes the application fail to start?

A mistake in a statement stops the startup with an error naming the faulty entry:
  • A statement key other than roles, effect or authorization, such as role.
  • A resource that no installed tool acts on.
  • An unknown action or effect.
  • A partial wildcard, such as calc*:read.
  • An entry with no : or several.
  • A missing or empty roles, effect or authorization.
  • A blank role.