> For the complete documentation index, see [llms.txt](https://docs.percona.com/percona-monitoring-and-management/3/llms.txt).

# Create access roles

Roles are essential components of PMM’s access control system. They allow you to limit users’ access to specific metrics based on their responsibilities and permissions.

## Before you begin

- You must have administrator privileges to create roles. For more information, see [Manage users](https://docs.percona.com/percona-monitoring-and-management/3/admin/manage-users/index.md).
- Access control must be enabled in PMM settings

## Create a new role

To create access roles in PMM:

1. From the [main menu](https://docs.percona.com/percona-monitoring-and-management/3/reference/ui/ui_components.md), go to **Configuration > Settings > Advanced Settings** and enable the **Access control** option.

1. Go to **Users and access > Access Roles**.

1. Click **Create**.

1. On the **Create role** page, enter a role name and description.

1. Configure metrics access by setting label selectors:

   - select a Label (e.g., “service_name”, “environment”)
   - choose an Operator (e.g., “=”, “!=”, “=~”)
   - enter the Value for the selected label

   If you want to add more than one label for a role, click *+* and select the values from the drop-down.

   For information on how the Prometheus selectors work, see [Prometheus selectors](https://prometheus.io/docs/prometheus/latest/querying/basics/#time-series-selectors).

1. Review your selections, then click **Create role** to finish creating the role.
