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

# TEST: SECURITY-GRM-02

Testing the attempted creation of a Group with required fields missing.

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

Only one group property is specifically required from user input during new group creation and that is the **Name**. This test verifies the required **Name** field has a prompt with a validation message. Note that Group ID is required, but is automatically generated.

## Pre-Conditions / Setup

1. User must be logged into an account with policies granted for creating groups.
2. Navigate to **Administration Panel / Security / Groups / Index**.

## Actions/Steps

1\. Click the **Create** button.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me3Qwps9PzpN8cd2sPn%2F-Me4sp3PGaeFqVNyCEzH%2Fimage.png?alt=media\&token=89a0f2ae-6d97-4faf-95b4-b21104d80d7e)

2\. Click the **Save** button.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me4wxq7brq81WZvfO3E%2F-Me4yim4nzRn-cD6sWT8%2Fimage.png?alt=media\&token=51c3e228-b846-4b7d-a743-72b967334724)

## Expected Behaviour

* No group should be created.
* Remain on **Administration Panel / Security / Groups / Create Group** page.
* Display a prompt below the required **Name** textbox with a validation message as follows:

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me4wxq7brq81WZvfO3E%2F-Me4z7OxZcm0dbrMkIS_%2Fimage.png?alt=media\&token=9dda2671-89e6-4141-bad4-68c12d5c60c4)
