> 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/group-role-management-tests/test-security-grm-15.md).

# TEST: SECURITY-GRM-04

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

## References

* [Group / Role Management](broken://pages/-LyJMcL5RmXYBlKFG77H)
* [TEST: SECURITY-GRM-03](/installation/installation-1/deployment/installing-software/santedb-server/installation-qualification/security-administration-testing/test-cases-for-ui-1/group-role-management-tests/test-security-grm-03-1.md)

## Discussion

After a group record has been deleted, it is not permanently destroyed. Deleted groups 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-GRM-03](/installation/installation-1/deployment/installing-software/santedb-server/installation-qualification/security-administration-testing/test-cases-for-ui-1/group-role-management-tests/test-security-grm-03-1.md) to delete a group (e.g. "Muddsville").

## Actions/Steps

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

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me52TN3dhjSwJisYgqc%2F-Me53X5JqyaLpk8kvsIr%2Fimage.png?alt=media\&token=9c03a173-3259-4912-bbab-4706c1b344da)

2\. Click the **OK** button on the confirmation prompt appearing in the browser.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me52TN3dhjSwJisYgqc%2F-Me53ehAT-sKXbcamnYd%2Fimage.png?alt=media\&token=76f594c6-716b-475e-bd94-8cf92f3cfa7d)

## Expected Behaviour

* Table is reloaded to show deleted groups and should no longer include the group that was just reactivated (e.g. "Muddsville").

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me52TN3dhjSwJisYgqc%2F-Me5666Jo_oiIvepiwh1%2Fimage.png?alt=media\&token=92810837-d936-4330-a82c-21efb001be93)

* After toggling back to the un-deleted groups, the reactivated group should appear there.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me52TN3dhjSwJisYgqc%2F-Me56n9Wm3NKo4xbFCoJ%2Fimage.png?alt=media\&token=b97f8667-810d-4ee6-9e15-2e36062b75fc)
