> 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-04.md).

# TEST: SECURITY-UM-04

## References

* [User Management](broken://pages/-LyJM_KRwADCTfXEdvxM)
* [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)
* [TEST: SECURITY-UM-38](/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.md)&#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](/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) for user creation and [TEST: SECURITY-UM-38](/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.md) 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.

![](/files/-MdulAnZ1SqvX-nACU22)

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](/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) and [TEST: SECURITY-UM-38](/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.md)).

## 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.

![](/files/-Mduj65h2VP2NpAYzIwp)
