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

# TEST: SECURITY-UM-01

Testing the successful creation of a new user with all properties specified.

## References

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

## Discussion

This is a basic test to demonstrate that the UI components appear and operate correctly when creating new users on the [User Management](broken://pages/-LyJM_KRwADCTfXEdvxM) page.

## Pre-Conditions / Setup

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

{% hint style="info" %}
Each of the tabs below (corresponding to a form section) contain a table that summarizes valid possible values for the form to create a new user.
{% endhint %}

{% tabs %}
{% tab title="Core Properties" %}

| Label        | Value                |
| ------------ | -------------------- |
| **Username** | ClinicalStaffUser123 |
| {% endtab %} |                      |

{% tab title="Security Properties" %}

| Label                | Value           |
| -------------------- | --------------- |
| **Role**             | CLINICAL\_STAFF |
| **New Password**     | Clinic\@l123    |
| **Confirm Password** | Clinic\@l123    |
| {% endtab %}         |                 |

{% tab title="Demographic Properties" %}

| Label                  | Value                               |
| ---------------------- | ----------------------------------- |
| **Security E-mail**    | <clinical_staff@user.com>           |
| **Security Phone**     | 519-203-8190                        |
| **Given Name**         | John                                |
| **Family Name**        | Doe                                 |
| **Preferred Language** | English                             |
| **Primary Facility**   | Muddy District Distribution Centre  |
| **Employer**           | Muddsville Central Hospital Network |
| {% endtab %}           |                                     |
| {% endtabs %}          |                                     |

## Actions/Steps

1\. Click the **Create** button to navigate from **Administration Panel / Security / Users / Index** to **Administration Panel / Security / Users / Create User**.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdqgEujipIDorUV2nIq%2F-MdqkXPpAG5PNn7R3miG%2Ftest1_createButton.png?alt=media\&token=21eed380-9cbe-448a-b7fa-057f4fe0a338)

2\. Enter valid text into the **Core Properties** drop-down form group.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdqgEujipIDorUV2nIq%2F-MdqkkLKMkSbAfMGw_Vh%2Ftest1_coreProperties.png?alt=media\&token=3c3af604-564d-4ec8-8367-20d06eee5947)

3\. Enter valid text into the **Security Properties** drop-down form group.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdqgEujipIDorUV2nIq%2F-MdqkqlQCEKTk96vXTs2%2Ftest1_securityProperties.png?alt=media\&token=d82e73c9-dcce-4a34-9c1f-94562d7810b3)

4\. Enter valid text into the **Demographic Properties** drop-down form group.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdqgEujipIDorUV2nIq%2F-MdqkvT3Wi4NqBVKQNTT%2Ftest1_demographicProperties.png?alt=media\&token=ef39c287-d4b2-4c02-84c6-22cb113d642a)

5\. Click the **Save** button.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZ0_pjgTp_kx4hqTZ3a%2Fuploads%2Fgit-blob-6ff174d73750299833ba0a3130a108a016e47d5e%2Ftest1_savebutton.png?alt=media)

## Expected Behaviour

* Automatically navigate to the **Administration Panel / Security / Users / Index** page.
* Momentarily display success message in top right corner: <img src="https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Md3PP4Stoe-ZuZndfwS%2F-Md3Ua2SVVvCSs0afL9h%2Fuser_successtoast.png?alt=media&amp;token=6518cc57-1a34-43e1-99f9-8763c97e0252" alt="" data-size="original">
* New user (**ClinicalStaffUser123**) should appear in the table of users on the Index page with properties matching those in the "Pre-Conditions / Setup" above.
