---
description: >-
  Testing the addition of a Policy with Granted Permission while editing a
  group's Assigned Policies.
---

# TEST: SECURITY-GRM-08

## References

* [Group / Role Management](broken-reference)
* [TEST: SECURITY-GRM-01](test-security-grm-01-1)

## 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](test-security-grm-01-1) 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.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me5i9g0JU79LbksxFfx%2F-Me5xbRHtRXkiS-m2yeV%2Fimage.png?alt=media\&token=95fc2d38-948e-49a7-969a-b8ed5c19ade3)

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

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me5i9g0JU79LbksxFfx%2F-Me5y5a1xnIV3Zg07IG-%2Fimage.png?alt=media\&token=9fdca0a2-ee88-4273-bb53-4f2d150a3055)

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

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me5i9g0JU79LbksxFfx%2F-Me5yxqdyZkNXYU60ELj%2Fimage.png?alt=media\&token=7119f1a4-4ee5-450b-9406-0c9366b25680)

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

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me5i9g0JU79LbksxFfx%2F-Me5vyXGxnFomIaRjt6s%2Fimage.png?alt=media\&token=41be81fe-d206-4e96-8568-bb264df737e4)

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

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me5i9g0JU79LbksxFfx%2F-Me5zGVeW8pmP78mnwAW%2Fimage.png?alt=media\&token=a4f7b4c9-64ee-4190-94d8-78b30081ea0a)

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

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me5i9g0JU79LbksxFfx%2F-Me5w34xNckH10MRZmjk%2Fimage.png?alt=media\&token=2c3755d2-7eed-4c98-a41c-a78789c67636)
