# TEST: SECURITY-UM-06

## References

* [User Management](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/broken-reference)
* [TEST: SECURITY-GRM-01](https://help.santesuite.org/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)
* [TEST: SECURITY-UM-01](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-01)

## 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](https://help.santesuite.org/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) 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](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-01)).

![](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)
