> 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-34-1.md).

# TEST: SECURITY-UM-34

Testing successful un-deletion of a user that has previously been deleted.

## References

* [User Management](broken://pages/-LyJM_KRwADCTfXEdvxM)
* [TEST: SECURITY-UM-33](/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)

## Discussion

After a user record has been deleted, it is not permanently destroyed. Deleted users can be **Un-Deleted** and is recovered from a Status of Obsolete in so doing.

## Pre-Conditions / Setup

1. Follow the instructions from [TEST: SECURITY-UM-33](/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) to delete a user (e.g. "ClinicalStaffUser123").

## Actions/Steps

1\. While the **Show Deleted** button is toggled (darkened), deleted users can be un-deleted by clicking the **Un-Delete** button corresponding to the user to be recovered.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me3EoX1RU_zGYEWX8Av%2F-Me3HZ3YyVNEI6qjZGWn%2Fimage.png?alt=media\&token=602abce8-69ab-434f-8879-f09828356c23)

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-Me3HhN3raiq11DY3d0z%2Fimage.png?alt=media\&token=e9469c54-56a4-4f42-9909-c0374401cae2)

## Expected Behaviour

* Table is reloaded to show un-deleted users and should include the user that was just reactivated (e.g. "ClinicalStaffUser123").

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me3EoX1RU_zGYEWX8Av%2F-Me3IgHa5yigUDS9SMQr%2Fimage.png?alt=media\&token=baa05dc4-71c2-4643-b357-9a5bf14412a1)
