> 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-06.md).

# TEST: SECURITY-GRM-08

## References

* [Group / Role Management](broken://pages/-LyJMcL5RmXYBlKFG77H)
* [TEST: SECURITY-GRM-01](/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.md)

## Discussion

A **Policy** may be added to a group which is applied to group members.

## Pre-Conditions / Setup

1. Follows the instructions from [TEST: SECURITY-GRM-01](/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.md) to create a group to be edited.
2. After a group is created, the user is automatically brought to the corresponding **Administration Panel / Security / Groups / Edit Group** page.

## Actions/Steps

&#x20;1\. Select the **Add** dropdown within the **Assigned Policies** panel.

![](/files/-Me5xbRHtRXkiS-m2yeV)

2\. Select a **Policy** (e.g. "Create Local Users") from the dropdown to be added to the list of **Assigned Policies**.

![](/files/-Me5y5a1xnIV3Zg07IG-)

3\. Click on the plus sign (**+**) to add the selected policy.

![](/files/-Me5yxqdyZkNXYU60ELj)

4\. Click the **Save** button after the selected **Policy** is added to the list of **Assigned Policies**.

![](/files/-Me5vyXGxnFomIaRjt6s)

## Expected Behaviour

* The explicitly added **Policy** (e.g. "Create Local Users") is saved to the list of **Assigned Policies** with a **Permission** value of **Grant** selected by default (darkened button).
* Dropdown of policies in the **Add** field has its last selection cleared.

![](/files/-Me5zGVeW8pmP78mnwAW)

* Green toast appears briefly in top-right corner of window stating: "Role updated successfully".

![](/files/-Me5w34xNckH10MRZmjk)
