# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET 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?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
