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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET 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?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
