# TEST: SECURITY-UM-25

## References

* [User Management](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/broken-reference)
* [TEST: SECURITY-UM-01](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)
* [TEST: SECURITY-UM-21](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-21)
* [TEST: SECURITY-UM-13](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-13)
* [TEST: SECURITY-UM-14](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-14)

## Discussion

SanteSuite allows users to register multiple **Name** objects each with Prefix, Given, Family, and Suffix fields. Changing the **Name Type** for one of the Name Registration object form groups affects each form group heading.

## Pre-Conditions / Setup

1. User must be logged into an account with policies granted for creating users.
2. Follow the instructions from [TEST: SECURITY-UM-01](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) to create a new user -- applying any valid values for required fields.
3. Follow the instructions from [TEST: SECURITY-UM-21](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-21) to navigate to **Administration Panel / Security / Users / Edit User** for the newly created user.

## Actions/Steps

1\. Click the **User Profile** tab.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me1zRT-zkbwZyaZMImW%2F-Me2ABcV2D56lhs33nD_%2Fimage.png?alt=media\&token=f2244a92-ed70-4e1e-a946-0b51533f49ec)

2\. Click the pencil in the top right-hand corner of the **Profile** to edit the properties.&#x20;

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me1zRT-zkbwZyaZMImW%2F-Me2APtOBQvuT6ntvXN6%2Fimage.png?alt=media\&token=c2234b5f-fcac-4cfe-86da-7b283fe018fb)

3\. Click the **Add** button to start adding a new Name Registration form group.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me1zRT-zkbwZyaZMImW%2F-Me2B9Bc9ceFn6krE1rR%2Fimage.png?alt=media\&token=5cc6223f-19c8-478a-8d5b-64b9810bef16)

4\. Choose a different **Name Type** from the dropdown list (e.g. "Religious")

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me1zRT-zkbwZyaZMImW%2F-Me2BlKK6gVTlx5nCLSC%2Fimage.png?alt=media\&token=46049b61-45ae-4d18-9fd6-da571a121c2c)

5\. Select a **Suffix** and **Prefix** from the corresponding dropdown lists and enter any **Given** or **Family** name(s) similar to how it is done in [TEST: SECURITY-UM-13](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-13) and [TEST: SECURITY-UM-14](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-14).

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me1zRT-zkbwZyaZMImW%2F-Me2DWNRPaSEmqj-OusL%2Fimage.png?alt=media\&token=908eb2d9-8ff2-4971-8fc0-6615411d1fac)

6\. Click the green checkmark to save the newly registered **Name** object.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me1HQIY6P6INDRiiVvJ%2F-Me1WhhOu0AA-hqKmeMs%2Fimage.png?alt=media\&token=b1e421b8-1ec0-4e1b-8cd9-a40bfe25ca5c)

## Expected Behaviour

* Notice that **Remove** buttons appear below each form group when there is more than one.
* Notice that **Name Registration** form group headings change according to the selected **Name Type** after selecting from the dropdown in step 4.
* Notice the red circle with exclamation mark next to the **Name** tab in step 4 when a Name Registration form group is blank. Clicking the green checkmark like in step 6 without providing a **Name Type** first like in step 5 has a result of nothing occurring.
* A toast message appears in the top-right corner of the window stating "User updated successfully" when the steps above are followed correctly.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me1zRT-zkbwZyaZMImW%2F-Me2FS-qYtLiDzU54RpY%2Fimage.png?alt=media\&token=8e3e3b29-6152-45e4-9ec4-ce5d08c60a9d)
