# TEST: SECURITY-UM-35

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

## Discussion

Users can be updated with a Status of Locked (for a maximum amount of time).

## Pre-Conditions / Setup

1. User must be logged into an account with policies granted for creating/deleting 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 user to be locked.
3. Navigate to **Administration Panel / Security / Users / Index**.

## Actions/Steps

1\.  Click the **Lock** button corresponding to a user with a Status of Active to be locked (e.g. "ClinicalStaffUser123").

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me3LoMhPwS36CN9ALoT%2F-Me3MAPRd4RXpLNjally%2Fimage.png?alt=media\&token=898d69e4-cc83-46b0-85b4-1642087e416e)

2\. Click the **OK** button on the confirmation modal that appears in the browser.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me3LoMhPwS36CN9ALoT%2F-Me3MHlUqSYhG2oan31i%2Fimage.png?alt=media\&token=5488fd5c-240b-4a45-9edc-9d6cb8f86a8b)

## Expected Behaviour

* Status of the user that was unlocked changes to **Locked.**
* **Lock** button changes to an **Unlock** button.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me3LoMhPwS36CN9ALoT%2F-Me3Mf85-bHgspvRnd6I%2Fimage.png?alt=media\&token=214294f6-9571-4f78-81e7-6e129217df8d)
