> 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/operations/standard-operating-procedures/user-management-sops/sop-deactivating-users.md).

# SOP: Deactivating Users

## Summary

This standard operating procedure intends to guide system administrators through the process of deactivating a user.&#x20;

### Use Procedure When

* [ ] A user account needs to be removed from the CDR
* [ ] A user account has been detected as breached
* [ ] A request to deactivate a user account has been received by the administrator

## Procedure

### Before Beginning

* [ ] There has been received, documentation of why the account is or needs to be deactivated, including:
  * [ ] Notice of termination of the user's employment or contractual relationship
  * [ ] Notice of a security breach or misuse of the system
  * [ ] Notice of employment change or duty change
* [ ] The e-mail address for the user account in question has been notified of the deactivation (or pending deactivation)
* [ ] The administrator has collected the username (system login name) of the user to be deactivated.
* [ ] Your user account has the **Alter Identity** policy granted

### Procedures / Tasks

1. Access the SanteDB administrative portal by [Logging In](/operations/cdr-administration/santedb-administration-panel/logging-in.md)
2. Visit the [Security Administration](/operations/cdr-administration/santedb-administration-panel/security-administration.md) center
3. Click on the [Managing User Accounts](/operations/cdr-administration/santedb-administration-panel/security-administration/managing-user-accounts.md#user-list) and search for the user using the system login name
4. Click the `Lock` button to lock out the user (to prevent un-deletion from restoring the user's access)
5. Click the `Delete` button and confirm that the user account is to be deleted

## Summary Information

**Current Status:** Example\
**Reviewed By:** SanteSuite Team

### **Revision History**

| Author                   | Date       | Changes         |
| ------------------------ | ---------- | --------------- |
| Justin Fyfe (SanteSuite) | 2022-01-11 | Initial Version |
|                          |            |                 |
|                          |            |                 |

### See Also

{% content-ref url="/pages/XurRTyNzXtVN0F9sjpgX" %}
[Security Administration](/operations/cdr-administration/santedb-administration-panel/security-administration.md)
{% endcontent-ref %}

{% content-ref url="/pages/ymv81dMyIH5EPdnqO0gO" %}
[Managing User Accounts](/operations/cdr-administration/santedb-administration-panel/security-administration/managing-user-accounts.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.santesuite.org/operations/standard-operating-procedures/user-management-sops/sop-deactivating-users.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
