# TEST: SECURITY-UM-04

## 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-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)
* [TEST: SECURITY-UM-38](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-33-1)&#x20;

## Discussion

The Username textbox has UI that prevents Username re-use that is supportive of user un-deletion that is included within the architecture of SanteSuite.&#x20;

## Pre-Conditions / Setup

1. User must be logged into an account with policies granted for creating users.
2. A deleted user must have been created previously with the name "ClinicalStaffUser123". 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) for user creation and [TEST: SECURITY-UM-38](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-33-1) for user deletion.
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 **Username** textbox within the **Core Properties** section.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdujS78df_CsbVbr4nN%2F-MdulAnZ1SqvX-nACU22%2Fimage.png?alt=media\&token=b2200c17-495e-4388-8d4e-8433da659356)

2\. Enter a Username that is a duplicate of an existing deleted user in the **Username** textbox  (e.g. "ClinicalStaffUser123" after [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) and [TEST: SECURITY-UM-38](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-33-1)).

## Expected Behaviour

* Red prompt should appear beneath the **Username** textbox stating, "duplicate record detected".
* User should not be created successfully by clicking save while all required **Security Properties** and **Demographic Properties** are provided with valid values.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MduWtRg5Acm3Qqgw_ca%2F-Mduj65h2VP2NpAYzIwp%2Fimage.png?alt=media\&token=d1bef507-4602-4ddb-9c03-577099105d65)
