> 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/user-management-tests/test-security-um-02.md).

# TEST: SECURITY-UM-02

Testing attempted creation of a new user with required properties missing.

## References

* [User Management](broken://pages/-LyJM_KRwADCTfXEdvxM)
* [TEST: SECURITY-UM-01](/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.md)

## Discussion

Some user properties are specifically required to successfully create a new user. This test verifies required fields have a prompt with a validation message. Required fields are:

* Username
* Role(s)
* New/Confirm Password
* Given Name(s)

## Pre-Conditions / Setup

1. User must be logged into an account with policies granted for creating users.
2. Navigate to **Administration Panel / Security / Users / Create User** by clicking the **Create** button on the **Administration Panel / Security / Users / Index** page.

## Actions/Steps

1\. Click the **Save** button.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Mdrd2OujkFfg4vo61un%2F-MdreAcYJ9NKzx4Rq05A%2FblankCreate_saveButton.png?alt=media\&token=d61a6042-a969-467a-b1bf-b53c628a11ae)

## Expected Behaviour

* No user should be created.
* Remain on **Administration Panel / Security / Users / Create User** page.
* Display a prompt below each required property 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-Mdrd2OujkFfg4vo61un%2F-MdrfO9uHXu60e2dNpat%2FblankCreate_prompted.png?alt=media\&token=6cd3be6f-2ef6-42dc-aba0-8026e2b7efaa)
