# User Role Resolver · Users · Admin Portal

Assign company roles automatically when a user’s email matches a rule. Apply the rules to incoming email and, optionally, new registrations.

Canonical: https://docs.mintsd.com/docs/mint-service-desk/admin-portal-user-role-resolver
Language: en-GB
Revision: 2a2d39f1e31deba465d9905cd685a5a3416966a588eb6151bba19ba5bc3c7cc9

<a id="element-01a1452d-f861-7bd4-868b-d0448eace952"></a>

User Role Resolver assigns company roles to users who create tickets by email or, optionally, register through the website. Rules match the user’s email address. For example, a rule matching “customer” assigns its selected role to [customer@mintsd.com](mailto:customer%40mintsd.com) when that user sends a ticket.

<a id="element-01a1452d-f862-79ff-8865-93aada9887bd"></a>

Upon opening the User Role Resolver tab, a table with the list of existing configurations is displayed, including the columns Name, Order,
Stop after match, Active, and Action.

<a id="element-01a1452d-f862-753e-91e7-5ebf28ca7caf"></a>

![Upon opening the User Role Resolver tab, a table with the list of existing configurations is displayed, including the columns Name, Order, Stop after match, Active, and Action.](https://docs.mintsd.com/api/reader/assets/assets/images/image1360.png?v=318140b5cf4c763b2f11ee1c6bf70136cdc13e0e5215d42a2da4e52c641d1983)

<a id="element-01a1452d-f863-7fd1-9b6a-cbd1b20ada7a"></a>

Administrators can manage column visibility and search the table by Name and Order; the Action column provides Edit and Delete buttons,
while the remaining columns are described in detail in the configuration creation section below.

<a id="element-01a1452d-f864-7633-850b-34fb3f448c34"></a>

To create a configuration, click on the + button located in the upper right corner of the page below the user icon. After clicking, a configuration creation form will open.

<a id="element-01a1452d-f864-7aea-b055-d27079048de5"></a>

![To create a configuration, click on the + button located in the upper right corner of the page below the user icon. After clicking, a configuration creation form will open.](https://docs.mintsd.com/api/reader/assets/assets/images/image1361.png?v=ce69f220776b4c3c30f9cf145ac174e9d4be1251b3122a4a719cf045bfda244c)

<a id="element-01a1452d-f865-7c23-b9c1-fde2687b4a66"></a>

## Filter section

<a id="element-01a1452d-f865-7055-8b83-f77076bfb4aa"></a>

In the Filter section, you define the logical conditions that determine whether a company role should be assigned to a user. The logical operator field allows you to toggle between
AND and OR, defining how all conditions in the configuration are evaluated together. Next to this field, there is a plus (+) icon that lets you add a new condition row.

<a id="element-01a1452d-f865-745d-bc2c-23c2a59e7c1b"></a>

![In the Filter section, you define the logical conditions that determine whether a company role should be assigned to a user.](https://docs.mintsd.com/api/reader/assets/assets/images/image1362.png?v=343fff313a97c0753dfbad3b43a285f94972b8ef2916215695a7239811507b96)

<a id="element-01a1452d-f866-760e-b44b-7fb3600835f6"></a>

Each added row contains an operator selection list (Contains, StartsWith, EndsWith, IsEqual, or MatchPattern), a text field where you enter the full email address or its
fragment (e.g., part of the username or domain), a Match case checkbox to enable case-sensitive comparison, and a delete (trash) icon to remove the condition if needed.

<a id="element-01a1452d-f866-724c-a8c2-bd9847db4c17"></a>

![Each added row contains an operator selection list (Contains, StartsWith, EndsWith, IsEqual, or MatchPattern), a text field where you enter the full email address or its fragment (e.g., part of the username or domain), a Match case checkbox to enable case-sensitive comparison, and a delete (trash) icon to remove the condition if needed.](https://docs.mintsd.com/api/reader/assets/assets/images/image1363.png?v=f4b62b59dd3f9cd8e15d4f139aa4a04f1cf477d5ce3030db4b3c548ec71638ce)

<a id="element-01a1452d-f868-7b8c-b2f9-d3554d25d858"></a>

## Configuration settings section

<a id="element-01a1452d-f868-74db-ad40-65f5aedded45"></a>

In the configuration settings section, you define how the rule behaves once the filter conditions are met.

<a id="element-01a1452d-f869-7c49-9a8f-ac2fc3b74b35"></a>

![In the configuration settings section, you define how the rule behaves once the filter conditions are met.](https://docs.mintsd.com/api/reader/assets/assets/images/image1364.png?v=cf48550e14fe7b6d1db55b0d17f34e9c790857c683fdf1529da898ae4f1b5f3e)

<a id="element-01a1452d-f86a-7a6a-8dcd-ac6f6860f3ef"></a>

The **Name** field is used to identify the configuration, while **Order**
determines the sequence in which the system evaluates this rule in relation to others.

<a id="element-01a1452d-f86b-7c84-8a51-447a2148842c"></a>

The **Role** field specifies which company role will be assigned to the user when the filter matches. You can set one or more company roles to assign. The **Stop after match** option ensures that no further configurations are
evaluated after this rule is successfully applied. The **Active** checkbox controls whether the configuration is currently enabled in the system, and **Include registration form**
determines whether the rule should also apply to users registering through the system’s registration form.

<a id="element-01a1452d-f86b-7037-93a6-c67034f250bc"></a>

### Example

<a id="element-01a1452d-f86c-774c-92c6-3667bef948bf"></a>

A new user with the address customer@mintsd.com sends a ticket. A rule matches addresses containing “customer” and assigns the Customer role for the Mint Service Desk company.

<a id="element-01a1452d-f86c-77f3-b3aa-b1398e4bc64f"></a>

![A new user with the address customer@mintsd.com sends a ticket. A rule matches addresses containing “customer” and assigns the Customer role for the Mint Service Desk company.](https://docs.mintsd.com/api/reader/assets/assets/images/image1365.png?v=febf3d3e05d4fb571f2e1b8c02eecab33ebc002cf4ef40bef1f8f9f26e394309)

<a id="element-01a1452d-f86d-7411-a2fd-6767b8cf3bcc"></a>

After the message is processed, the role is assigned automatically.

