# TEST: SECURITY-UM-33

## 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)&#x20;

## Discussion

SanteSuite users cannot be permanently destroyed. Deleting a user means that it is moved to a list of deleted users.&#x20;

## Pre-Conditions / Setup

1. User must be logged into an account with policies granted for creating/deleting users.
2. Follow the instructions from [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) to create a user to be deleted.
3. Navigate to **Administration Panel / Security / Users / Index**.

## Actions/Steps

1\. Click the **Delete** button in the same row as the user to be deleted.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me3CDp2JUmrXxDyyH8y%2F-Me3EiCnldNypKLKcv7Z%2Fimage.png?alt=media\&token=e7a51dad-fe93-406a-a240-b1732f6d6cfc)

2\. Click the **OK** button on the confirmation modal that appears in the browser.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me3EoX1RU_zGYEWX8Av%2F-Me3F6KXa6-PBmPUyIK_%2Fimage.png?alt=media\&token=9919aee4-6a1c-4767-8a9a-5832d382db9d)

## Expected Behaviour

* Deleted user should be removed from the list after it reloads and is added to the list of deleted users.
* Clicking the **Show Deleted** button should toggle (darkened button) the list of deleted users and should include the user that was just deleted (e.g. "ClinicalStaffUser123" in this case).

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me3EoX1RU_zGYEWX8Av%2F-Me3FqL1twq56NicxyYl%2Fimage.png?alt=media\&token=810064a0-a717-479a-aa57-d6ed8fb3a092)
