> For the complete documentation index, see [llms.txt](https://help.santesuite.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.santesuite.org/installation/installation-1/deployment/installing-software/santedb-server/installation-qualification/security-administration-testing/test-cases-for-ui-1/user-management-tests/test-security-um-06.md).

# TEST: SECURITY-UM-06

Testing the Role textbox from Security Properties with multiple valid roles.

## References

* [User Management](broken://pages/-LyJM_KRwADCTfXEdvxM)
* [TEST: SECURITY-GRM-01](/installation/installation-1/deployment/installing-software/santedb-server/installation-qualification/security-administration-testing/test-cases-for-ui-1/group-role-management-tests/test-security-grm-01-1.md)
* [TEST: SECURITY-UM-01](/installation/installation-1/deployment/installing-software/santedb-server/installation-qualification/security-administration-testing/test-cases-for-ui-1/user-management-tests/test-security-um-01.md)

## Discussion

Users can be assigned multiple roles/groups that could have various policies and permissions. A valid Role Name of an existing Group must be searched one at a time as each is entered and/or selected within a single textbox.

## Pre-Conditions / Setup

1. User must be logged into an account with policies granted for creating users.
2. Multiple **Role Names** corresponding to groups must exist to assign to a user (see [TEST: SECURITY-GRM-01](/installation/installation-1/deployment/installing-software/santedb-server/installation-qualification/security-administration-testing/test-cases-for-ui-1/group-role-management-tests/test-security-grm-01-1.md) for successful Group creation).
3. Navigate to **Administration Panel / Security / Users / Create User** by clicking the **Create** button on the **Administration Panel / Security / Users / Index** page.

## Actions/Steps

1\. Select the **Role** textbox within the **Security Properties** section.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MduoLf-0SV8C7vjCotz%2F-Mdutq9MFH-7reCmLrjO%2Fimage.png?alt=media\&token=15e5007e-2ff9-4ad5-8851-2a52e65e23e4)

2\. Click on an existing group's **Role Name** in the dropdown menu (e.g. "USERS" has been selected here).

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MduvpngS79RykiYtfTw%2F-MduzAsoTFz_CZQwqpMU%2Fimage.png?alt=media\&token=d682727d-3ea1-4d4f-968c-9ffbb40b69f7)

3\. Begin entering the string value of another existing group's **Role Name** until it is the only matching **Role Name** appearing in the dropdown menu (e.g. "sensi" is being entered here and only matches "SENSITIVE\_USERS" as intended).

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MduvpngS79RykiYtfTw%2F-Mdv-0Y9yu107o6D35FZ%2Fimage.png?alt=media\&token=9191539a-f594-4108-929c-5c6219c2e214)

4\. Press the **Enter** key.

## Expected Behaviour

* Multiple tags appear, each representing a **Role Name** of a group and can be removed from the **Role** textbox.
* Policies and permissions for the **Role Name(s)** in the **Role** textbox are applied upon creation of the corresponding user (see [TEST: SECURITY-UM-01](/installation/installation-1/deployment/installing-software/santedb-server/installation-qualification/security-administration-testing/test-cases-for-ui-1/user-management-tests/test-security-um-01.md)).

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MduvpngS79RykiYtfTw%2F-Mdv0Uzeq1pCFAGLbM1F%2Fimage.png?alt=media\&token=22bacd4b-1347-4ac1-8ebd-b7e44cfab2b2)
