# TEST: SECURITY-UM-22

## References

* [User Management](broken://pages/-LyJM_KRwADCTfXEdvxM)
* [TEST: SECURITY-UM-01](/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-21](/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.md)
* [TEST: SECURITY-UM-06](/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.md)

## 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](/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) to create a new user -- applying any valid values for required fields.
3. Follow the instructions from [TEST: SECURITY-UM-21](/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.md) 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;

![](/files/-Me1U70iearojgdN-m17)

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

![](/files/-Me1W9vprmr5AAwxpZ5-)

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

![](/files/-Me1WhhOu0AA-hqKmeMs)

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.](/files/-Me1XQmqqGL1KhOdgGXG)

![After editing.](/files/-Me1Xf7-rKLCvtGqKDdW)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET 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-22.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
