> 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

## 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.&#x20;

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

![](/files/-Mdutq9MFH-7reCmLrjO)

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).&#x20;

![](/files/-Mduu7UTQgrptgR1B4A9)

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

![](/files/-Mdute1UrYte019QbsyV)
