# TEST: SECURITY-GRM-03

## References

* [Group / Role Management](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/broken-reference)
* [TEST: SECURITY-GRM-01](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-01-1)

## Discussion

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

## Pre-Conditions / Setup

1. User must be logged into an account with policies granted for creating/deleting groups.
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 group to be deleted.
3. Navigate to **Administration Panel / Security / Groups / Index**.

## Actions/Steps

&#x20;1\. Click the **Delete** button in the same row as the group to be deleted.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me4zHT-HTVfuQ0md6J4%2F-Me51AwoPqZXRbZso2DB%2Fimage.png?alt=media\&token=1d443836-6579-4edb-8bbb-123933317eeb)

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

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me4zHT-HTVfuQ0md6J4%2F-Me51VSTq1akOKpaPcsH%2Fimage.png?alt=media\&token=d0abb2e6-b2f0-45ee-88bb-70c4ffa9bf09)

## Expected Behaviour

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

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me4zHT-HTVfuQ0md6J4%2F-Me52AuTW2W8Fi5VGPMZ%2Fimage.png?alt=media\&token=7d5600b0-9569-40f9-9504-f1d4be00b8ab)
