> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Roles and permissions

> Overview of roles and permissions in Atoti Limits, covering predefined role definitions for the Limits cube, and data access permission configuration per role

Atoti Limits uses roles and permissions to manage access to the Limits cube and the limits and incidents users can view.
This section describes the roles included with Atoti Limits and how to configure permissions per role.

Atoti Limits has three types of roles:

* [General roles](https://docs.activeviam.com/atoti-intelligence/workflows/limits/6.2/dev/configure/roles/limits-roles.md#general-roles) are predefined roles for a user's business function, such as user, manager or admin. General roles control access to key components of Atoti Limits, such as the REST API and Activiti.
* [Permission roles](https://docs.activeviam.com/atoti-intelligence/workflows/limits/6.2/dev/configure/roles/limits-roles.md#permission-roles) are predefined roles that control access to specific features, such as creating and evaluating limits. `ROLE_READ_ONLY` gives the least access and `ROLE_LIMITS` gives full access.
* [Data access roles](https://docs.activeviam.com/atoti-intelligence/workflows/limits/6.2/dev/configure/roles/data-access-permissions.md) are custom roles that control the data users can access in Atoti Limits, including the KPIs and calculated members that Atoti Limits creates in the business cube. The permissions of data access roles are defined in the `application.yml` file of Atoti Limits.

Roles are assigned to users in the security configuration of both Atoti Limits and the connected Atoti Server, so that access to the KPIs and calculated members in the business cube stays in sync with the data the user can access in Atoti Limits. The simplest setup is to place the security configuration in one module and depend on that module in both Atoti Limits and the Atoti Server. In the starter project, the users and their roles come from the `UserDetailsService` bean. To replace them, see [How to customize security](https://docs.activeviam.com/atoti-intelligence/workflows/limits/6.2/dev/install/customize-starter.md#how-to-customize-security).
