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

# TEST: SECURITY-UM-05

Testing the Role textbox from Security Properties with an invalid value.

## References

* [User Management](broken://pages/-LyJM_KRwADCTfXEdvxM)

## Discussion

Users can be assigned multiple roles/groups that could have various policies and permissions. An invalid Role Name is one that is not a Core Property of any Group.

## Pre-Conditions / Setup

1. User must be logged into an account with policies granted for creating users.
2. **Role Name** of the group being entered/added to a user's roles must not exist.
3. Navigate to **Administration Panel / Security / Users / Create User** by clicking the **Create** button on the **Administration Panel / Security / Users / Index** page.

## Actions/Steps

1\. Select the **Role** textbox within the **Security Properties** section.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MduoLf-0SV8C7vjCotz%2F-Mdutq9MFH-7reCmLrjO%2Fimage.png?alt=media\&token=15e5007e-2ff9-4ad5-8851-2a52e65e23e4)

2\. Enter a string that does not match the **Role Name** for any existing group (e.g. "NOT\_A\_ROLE" is being entered here and role names are searched as each character is modified).

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MduoLf-0SV8C7vjCotz%2F-Mduu7UTQgrptgR1B4A9%2Fimage.png?alt=media\&token=891baf4a-d5bd-40c3-8afb-8d12c86ed9c5)

## Expected Behaviour

* The dropdown of possible matching Role Names should display a single disabled value only to prompt the user that there are "no results found".
* The non-existent role being searched should not be added to the **Role** textbox (in this case it remains blank when no other values are present).

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MduoLf-0SV8C7vjCotz%2F-Mdute1UrYte019QbsyV%2Fimage.png?alt=media\&token=480216a8-7ff4-4e8f-9f5d-54d69eacbb5c)
