# TEST: SECURITY-UM-22

## 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-06](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-06)

## Discussion

When a user's properties are edited, the user's corresponding **Updated By** core property is updated to the datetime edits are saved at.

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

## Actions/Steps

1\. Click the pencil in the top right-hand corner of **Security Properties** to edit them.&#x20;

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me1HQIY6P6INDRiiVvJ%2F-Me1U70iearojgdN-m17%2Fimage.png?alt=media\&token=149ab10d-5efe-4aa0-b52d-10f5931f154f)

2\. Follow similar actions/steps from [TEST: SECURITY-UM-06](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-06) to add an additional role.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me1HQIY6P6INDRiiVvJ%2F-Me1W9vprmr5AAwxpZ5-%2Fimage.png?alt=media\&token=c4c28feb-a002-4f4c-8aee-259e787d9a34)

3\.  Click the green checkmark to save the edited roles.

![](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)

4\. Refresh the page.

{% hint style="warning" %}
It is recommended to empty the cache and perform a hard reload in step 4.
{% endhint %}

## Expected Behaviour

* Notice that the users **Updated By** field in the **Core Properties** has changed to the datetime when roles were edited.

![Before editing.](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me1HQIY6P6INDRiiVvJ%2F-Me1XQmqqGL1KhOdgGXG%2Fimage.png?alt=media\&token=76d827fb-eff6-48e7-82c7-6b9d5833a29d)

![After editing.](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me1HQIY6P6INDRiiVvJ%2F-Me1Xf7-rKLCvtGqKDdW%2Fimage.png?alt=media\&token=3d82a9e2-1ee2-44ac-8e02-41ee17327962)
