# Matrix Account Management

Unsure what an EMS account is, see the 'Understanding Your Element Accounts' page above.

# Add Email to Your Account

1. Go to Element `All settings`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386226069-24-15-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386226069-24-15-pm.png)

1. Enter your email address and click `Add`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386382317-51-19-am.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386382317-51-19-am.png)

1. When you get this message, check your email  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386399136-57-57-am.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386399136-57-57-am.png)

1. Click the link in the email. Make sure it opens in another tab/window, leaving your Element client where it is  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386413948-55-01-am.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386413948-55-01-am.png)

1. When you get this message, you can close the verification tab/window and return to Element  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386426394-00-03-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386426394-00-03-pm.png)

1. Go back to Element and click `Continue`  

1. Enter your account password or confirm using SSO, then click `Continue`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386489387-01-34-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386489387-01-34-pm.png)

1. If all worked correctly, your new email should now show up under the `Email addresses` section in Element settings. If not, something went wrong and you need to try again  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386499735-02-17-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386499735-02-17-pm.png)

# Creating a Matrix Account

<!---
Actions needed:
- [ ] 

# Creating a Matrix Account
--->

<!---<p class="callout info">Remember to check our <a href="https://ems-docs.element.io/books/kieranml-test-book/page/have-you-tried-httpselementiohelp">Looking for help?</a> page for answers to Frequently Asked Questions and our User Guide!</p>--->

<p class="callout warning"><b>Disclaimer:</b> This guide refers to using the Element Matrix clients, <a href="https://app.element.io/" target="_blank" rel="noopener noreferrer">Element Web</a> or <a href="https://element.io/download" target="_blank" rel="noopener noreferrer">Element Desktop</a> apps</p>

### Creating your Matrix Account

Depending on your homeserver, and it's configuration, the sign-up process may differ slightly, however the overall process should largely follow these steps.

From your Matrix Client, click `Create Account`, then make sure to change the homeserver as needed. You can do this by clicking `Edit` next to the current homeserver name. Once a homeserver is selected, the client will then show you the available registration / authentication methods.

[![create_account_prompt](https://ems-docs.element.io/uploads/images/gallery/2023-06/scaled-1680-/image-1686041959863.png)](https://ems-docs.element.io/uploads/images/gallery/2023-06/image-1686041959863.png)

#### External Services

External service registration allows you to register for your account using a handful of different login providers, For example, <a href="https://matrix.org" target="_blank" rel="noopener noreferrer">matrix.org</a> allows sign-up using a number of external services, including GitHub.

<p class="callout warning">If you choose to register using an external service, you will not be able to use it with any other account, including if you deactivate the account it is associated with.</p>

#### Username, Password and Email

For the initial stage of the registration flow, you will need to choose a username, otherwise known as your Matrix ID (MXID). Like email it follows a standardized format, `@username:homeserver.com`, for example a username of `example-name` on the `matrix.org` homeserver would be `@example-name:matrix.org`.

Choose carefully, it isn't possible to change your MXID, you will however have a display name, that is freely changeable.

You will also be able to provide an email, this is an optional field, if you add an email you will be able to reset your password. Additionally, adding an email allows you to opt-in to be discoverable by existing contacts.

#### Privacy Policy

Before your account can be created, you may need to review and accept any policies of the homeserver you wish to join. Do so by clicking the `Privacy Policy` link and reading through the document - if you accept the policy, confirm by clicking the checkbox and clicking `Accept`.

### Creating a Matrix Account on your Homeserver

If you're an EMS customer, you can create your users via the <a href="https://ems.element.io/user/hosting#/admin" target="_blank" rel="noopener noreferrer">Server Admin</a> tab of the <a href="https://ems.element.io/user/hosting" target="_blank" rel="noopener noreferrer">EMS Control Panel</a>.
<!---Check out the [Server Admin]() section of the [EMS Control Panel]() doc for more guidance.--->

Alternatively you can make use of the <a href="https://matrix-org.github.io/synapse/latest/usage/administration/admin_api/" target="_blank" rel="noopener noreferrer">Synapse Admin API</a> to create a Matrix Account on a homeserver you hold an Admin account on. To do so, you will need to use <a href="https://matrix-org.github.io/synapse/latest/admin_api/user_admin_api.html#create-or-modify-account" target="_blank" rel="noopener noreferrer">Create or Modify Account</a> from the <a href="https://matrix-org.github.io/synapse/latest/admin_api/user_admin_api.html#user-admin-api" target="_blank" rel="noopener noreferrer">User Admin API</a>.
<!---For more information on using the <a href="https://matrix-org.github.io/synapse/latest/usage/administration/admin_api/" target="_blank" rel="noopener noreferrer">Synapse Admin API</a> check our [Getting Started using the Admin API]() documentation.--->

```
https://HOMESERVER_URL/_synapse/admin/v2/users/FULL_USERNAME
```

```json
{
    "password": "user_password",
    "displayname": "User",
    "threepids": [
        {
            "medium": "email",
            "address": "<user_mail_1>"
        },
        {
            "medium": "email",
            "address": "<user_mail_2>"
        }
    ],
    "external_ids": [
        {
            "auth_provider": "<provider1>",
            "external_id": "<user_id_provider_1>"
        },
        {
            "auth_provider": "<provider2>",
            "external_id": "<user_id_provider_2>"
        }
    ],
    "avatar_url": "<avatar_url>",
    "admin": false,
    "deactivated": false
}
```

# Securing a Matrix Account

<!---
Actions needed:
- [ ] 

# Securing a Matrix Account
--->

<!---<p class="callout info">Remember to check our <a href="https://ems-docs.element.io/books/kieranml-test-book/page/have-you-tried-httpselementiohelp">Looking for help?</a> page for answers to Frequently Asked Questions and our User Guide!</p>--->

<p class="callout warning"><b>Disclaimer:</b> This guide refers to using the Element Matrix clients, <a href="https://app.element.io/" target="_blank" rel="noopener noreferrer">Element Web</a> or <a href="https://element.io/download" target="_blank" rel="noopener noreferrer">Element Desktop</a> apps</p>

Once you have an account, it's important to understand the mechanisms it uses to keep your messages secure. Matrix uses encryption to protect your communication. The keys for this encryption should be kept secure, this is done using Secure Backup.

### Secure Backup

After sending your first encrypted message, you'll receive a prompt to `Set up Secure Backup`, to safeguard against losing access to encrypted messages & data. If you choose not to, any new sessions you start by logging into different clients, will not be able to see you messages.

If you do not receive a prompt, or chose to action later, you can initiate its setup by clicking on your avatar in the top left, then selecting `Security & Privacy`. Under the `Encryption` / `Secure Backup` section, select `Set up`.

Follow the prompt to set up your Secure Backup, you can opt to use a phrase or always use a Security Key. If you opt for a Security Phrase, you will be able to provide a phrase of your choosing which you will need to provide to any client when you login with your account. Alternatively, if you forget your phrase, or did not provide one - you will need to provide the generated key.

#### Verified Session

A verified session is a device (any client logged into your account) that has been verified as legitimate. On your accounts' first login, the session will be marked as verified, make sure to set up a Secure Backup, you will need it if you ever lose access to all verified sessions.

When you login to a new session, you will be presented with the option to either provide your Security Key / Phrase, or to request verification from another already verified session. Successfully completing either option will mark your new session as verified.

##### Forgotten or lost all recovery methods?

If you have forgotten or lost all methods of verifying your account, you will need to `Reset` you account. Doing so will result in losing access to all your encrypted messages, and mark all sessions as unverified (treating this new session like your first).

### Add Email to your account

Adding an email to your account will allow you to be able to reset your password should you lose it. Simply follow these steps:

1. Go to Element `All settings`
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721651101546-24-15-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721651101546-24-15-pm.png)

2. Enter your email address and click `Add`
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721651182568-51-19-am.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721651182568-51-19-am.png)

3. When you get this message, check your email
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721651265482-57-57-am.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721651265482-57-57-am.png)

4. Click the link in the email. Make sure it opens in another tab/window, leaving your Element client where it is
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721651210107-55-01-am.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721651210107-55-01-am.png)

5. When you get this message, you can close the verification tab/window and return to Element
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721651288348-00-03-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721651288348-00-03-pm.png)

6. Go back to Element and click `Continue`
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721651323286-57-57-am.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721651323286-57-57-am.png)

7. Enter your account password or confirm using SSO, then click `Continue`
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721651357335-01-34-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721651357335-01-34-pm.png)

8. If all worked correctly, your new email should now show up under the `Email addresses` section in Element settings. If not, something went wrong and you need to try again
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721651385753-02-17-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721651385753-02-17-pm.png)

### Securing a Matrix Account on your Homeserver

If you're an EMS customer, you can create your users via the <a href="https://ems.element.io/user/hosting#/admin" target="_blank" rel="noopener noreferrer">Server Admin</a> tab of the <a href="https://ems.element.io/user/hosting" target="_blank" rel="noopener noreferrer">EMS Control Panel</a>.
<!---Check out the [Server Admin]() section of the [EMS Control Panel]() doc for more guidance.--->

Alternatively you can make use of the <a href="https://matrix-org.github.io/synapse/latest/usage/administration/admin_api/" target="_blank" rel="noopener noreferrer">Synapse Admin API</a> to create a Matrix Account on a homeserver you hold an Admin account on. To do so, you will need to use <a href="https://matrix-org.github.io/synapse/latest/admin_api/user_admin_api.html#create-or-modify-account" target="_blank" rel="noopener noreferrer">Create or Modify Account</a> from the <a href="https://matrix-org.github.io/synapse/latest/admin_api/user_admin_api.html#user-admin-api" target="_blank" rel="noopener noreferrer">User Admin API</a>.
<!---For more information on using the <a href="https://matrix-org.github.io/synapse/latest/usage/administration/admin_api/" target="_blank" rel="noopener noreferrer">Synapse Admin API</a> check our [Getting Started using the Admin API]() documentation.--->

```
https://HOMESERVER_URL/_synapse/admin/v2/users/FULL_USERNAME
```

```json
{
    "threepids": [
        {
            "medium": "email",
            "address": "<user_mail_1>"
        },
        {
            "medium": "email",
            "address": "<user_mail_2>"
        }
    ],
}
```

# Change Account Password

Resetting the account password will log out all your sessions. Before doing this, make sure that

- all your sessions are connected to key backup,
- all sessions have backed up all their keys. See [Check Cross Signing Status](check-status), and
- you have your correct key backup passphrase available.

<br />

- [If you know your current password](#bkmrk-if-you-know-your-cur-0)
- [If you do not know your current password](#bkmrk-if-you-do-not-know-y)

## If you know your current password

1. Go to Element `All settings`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386226069-24-15-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386226069-24-15-pm.png)

1. Enter your current password and your new password  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386709483-26-13-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386709483-26-13-pm.png)

1. You might want to export your `E2E room keys`. Just to be on the safe side in case something goes wrong. See also [Export and Import E2E Room Keys](export-and-import-e2e-room-keys)

1. Click `Continue`.  
Note: This warning is outdated, see <a href="https://github.com/element-hq/element-web/issues/15226" target="_blank" rel="noopener noreferrer">this issue</a>  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386736588-28-52-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386736588-28-52-pm.png)

1. Click `OK`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386748955-31-01-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386748955-31-01-pm.png)

1. You now need to sign in again on all your other devices

## If you do not know your current password

Note, this will only work if you have an email address attached to your Matrix account. If you do not have an email address attached, contact the administrators of your homeserver. (support@matrix.org does not reset passwords in any circumstance)

1. Sign out of Element  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386763370-32-36-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386763370-32-36-pm.png)

1. Click `Sign out`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386778448-15-05-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386778448-15-05-pm.png)

1. Click "Not sure of your password? `Set a new one`"  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386791396-15-56-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386791396-15-56-pm.png)

1. Enter your email address, and a new password. Then click `Send Reset Email`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386808138-20-13-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386808138-20-13-pm.png)

1. Click `Continue`.  
Note: This warning is outdated, see <a href="https://github.com/element-hq/element-web/issues/15226" target="_blank" rel="noopener noreferrer">this issue</a>  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386839812-33-47-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386839812-33-47-pm.png)

1. When you get this message, check your email  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386856129-22-21-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386856129-22-21-pm.png)

1. Click the link in the email. Make sure it opens in  new browser tab, leaving your Element client open  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386886765-23-42-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386886765-23-42-pm.png)

1. Click `Confirm changing my password`  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386899028-26-36-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386899028-26-36-pm.png)

1. You can now close this tab and return to Element  
[![](https://ems-docs.element.io/uploads/images/gallery/2023-12/scaled-1680-/image-1702386912849-27-21-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2023-12/image-1702386912849-27-21-pm.png)

1. Click `I have verified my email address`

1. Click `Return to login screen`  

1. Sign in like normal with your new password. Note that all your other sessions have been signed out and you need to sign in again.

# Changing a Matrix Account password

<!---
Actions needed:
- [ ] 

# Changing a Matrix Account password
--->

<!---<p class="callout info">Remember to check our <a href="https://ems-docs.element.io/books/kieranml-test-book/page/have-you-tried-httpselementiohelp">Looking for help?</a> page for answers to Frequently Asked Questions and our User Guide!</p>--->

<p class="callout warning"><b>Disclaimer:</b> This guide refers to using the Element Matrix clients, <a href="https://app.element.io/" target="_blank" rel="noopener noreferrer">Element Web</a> or <a href="https://element.io/download" target="_blank" rel="noopener noreferrer">Element Desktop</a> apps</p>

### Changing your Matrix Account password

<p class="callout warning">If you don't know your password, you'll need to recover your account, see our <a href="https://ems-docs.element.io/books/element-support/page/recovering-a-matrix-account">Recovering a Matrix Account</a> page for instructions.</p>

1. Go to Element `All settings`
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721651752111-24-15-
	
	You might want to export your `E2E room keys`. Just to be on the safe side in case something goes wrong. See also [Export and Import E2E Room Keys](https://ems-docs.element.io/books/element-support/page/export-and-import-e2e-room-keys)

2. Enter your current password and your new password
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721651780042-26-13-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721651780042-26-13-pm.png)


3. Click `OK`
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721651805137-31-01-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721651805137-31-01-pm.png)


4. You now need to sign in again on all your other devices

### Changing a Matrix Account password on your Homeserver

If you're an EMS customer, you can create your users via the <a href="https://ems.element.io/user/hosting#/admin" target="_blank" rel="noopener noreferrer">Server Admin</a> tab of the <a href="https://ems.element.io/user/hosting" target="_blank" rel="noopener noreferrer">EMS Control Panel</a>.
<!---Check out the [Server Admin]() section of the [EMS Control Panel]() doc for more guidance.--->

Alternatively you can make use of the <a href="https://matrix-org.github.io/synapse/latest/usage/administration/admin_api/" target="_blank" rel="noopener noreferrer">Synapse Admin API</a> to change a Matrix Account password on a homeserver you hold an Admin account on. To do so, you will need to use <a href="https://matrix-org.github.io/synapse/latest/admin_api/user_admin_api.html#create-or-modify-account" target="_blank" rel="noopener noreferrer">Create or Modify Account</a> from the <a href="https://matrix-org.github.io/synapse/latest/admin_api/user_admin_api.html#user-admin-api" target="_blank" rel="noopener noreferrer">User Admin API</a>.
<!---For more information on using the <a href="https://matrix-org.github.io/synapse/latest/usage/administration/admin_api/" target="_blank" rel="noopener noreferrer">Synapse Admin API</a> check our [Getting Started using the Admin API]() documentation.--->

```
https://HOMESERVER_URL/_synapse/admin/v2/users/FULL_USERNAME
```

```json
{
    "password": "new_password"
}
```

# Recovering a Matrix Account

<!---
Actions needed:
- [ ] 

# Recovering a Matrix Account
--->

<!---<p class="callout info">Remember to check our <a href="https://ems-docs.element.io/books/kieranml-test-book/page/have-you-tried-httpselementiohelp">Looking for help?</a> page for answers to Frequently Asked Questions and our User Guide!</p>--->

<p class="callout warning"><b>Disclaimer:</b> This guide refers to using the Element Matrix clients, <a href="https://app.element.io/" target="_blank" rel="noopener noreferrer">Element Web</a> or <a href="https://element.io/download" target="_blank" rel="noopener noreferrer">Element Desktop</a> apps</p>

Resetting the account password will log out all your sessions, before doing this, make sure that
- All your sessions are connected to Secure Backup
- All sessions have backed up all their keys ([Check Cross Signing Status](https://ems-docs.element.io/books/element-support/page/check-status))
- You have your correct key backup passphrase available

### Recovering your Matrix Account

<p class="callout info">This will only work if you have an email address attached to your Matrix account. If you do not have an email address attached, contact the administrators of your homeserver.</p>

<p class="callout warning">Reminder: <a href="mailto:support@matrix.org" target="_blank" rel="noopener noreferrer">support@matrix.org</a> does not reset passwords under any circumstances</p>

1. Sign out of Element
[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721651991898-32-36-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721651991898-32-36-pm.png)

2. Click `Sign out`
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721652013530-15-05-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721652013530-15-05-pm.png)

3. Click "Not sure of your password? `Set a new one`"
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721652041660-15-56-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721652041660-15-56-pm.png)

4. Enter your email address, and a new password. Then click `Send Reset Email`
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721652072517-20-13-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721652072517-20-13-pm.png)

5. When you get this message, check your email
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721652099747-22-21-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721652099747-22-21-pm.png)

6. Click the link in the email. Make sure it opens in  new browser tab, leaving your Element client open
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721652128382-23-42-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721652128382-23-42-pm.png)

7. Click `Confirm changing my password`
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721652188389-26-36-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721652188389-26-36-pm.png)

8. You can now close this tab and return to Element
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721652219082-27-21-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721652219082-27-21-pm.png)

9. Click `I have verified my email address`
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721652254888-22-21-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721652254888-22-21-pm.png)

10. Click `Return to login screen`
	[![](https://ems-docs.element.io/uploads/images/gallery/2024-07/scaled-1680-/image-1721652295124-28-38-pm.png)](https://ems-docs.element.io/uploads/images/gallery/2024-07/image-1721652295124-28-38-pm.png)

11. Sign in like normal with your new password. Note that all your other sessions have been signed out and you need to sign in again.

### Recovering a Matrix Account on your Homeserver

If you're an EMS customer, you can create your users via the <a href="https://ems.element.io/user/hosting#/admin" target="_blank" rel="noopener noreferrer">Server Admin</a> tab of the <a href="https://ems.element.io/user/hosting" target="_blank" rel="noopener noreferrer">EMS Control Panel</a>.
<!---Check out the [Server Admin]() section of the [EMS Control Panel]() doc for more guidance.--->

Alternatively you can make use of the <a href="https://matrix-org.github.io/synapse/latest/usage/administration/admin_api/" target="_blank" rel="noopener noreferrer">Synapse Admin API</a> to manage a Matrix Account on a homeserver you hold an Admin account on. To do so, you will need to use the <a href="https://matrix-org.github.io/synapse/latest/admin_api/user_admin_api.html#user-admin-api" target="_blank" rel="noopener noreferrer">User Admin API</a>.
<!---For more information on using the <a href="https://matrix-org.github.io/synapse/latest/usage/administration/admin_api/" target="_blank" rel="noopener noreferrer">Synapse Admin API</a> check our [Getting Started using the Admin API]() documentation.--->

# Deactivating a Matrix Account

<!---
Actions needed:
- [ ] 

# Deactivating a Matrix Account
--->

<!---<p class="callout info">Remember to check our <a href="https://ems-docs.element.io/books/kieranml-test-book/page/have-you-tried-httpselementiohelp">Looking for help?</a> page for answers to Frequently Asked Questions and our User Guide!</p>--->

<p class="callout warning"><b>Disclaimer:</b> This guide refers to using the Element Matrix clients, <a href="https://app.element.io/" target="_blank" rel="noopener noreferrer">Element Web</a> or <a href="https://element.io/download" target="_blank" rel="noopener noreferrer">Element Desktop</a> apps</p>

### Deactivating your Matrix Account

If you wish to deactivate your account, you can do so by following the below steps:

- Log in to your Matrix Client
- Click on your Avatar / Username in the top left corner
- Open `Settings`
- From the bottom of the `General` tab, click `Deactivate`
- Check any additional options, if applicable, then enter your password or confirm via SSO to deactivate your account

[![deactivate_account_warning_and_confirmation_prompt](https://ems-docs.element.io/uploads/images/gallery/2023-03/scaled-1680-/image-1679492386786.png)](https://ems-docs.element.io/uploads/images/gallery/2023-03/image-1679492386786.png)

Please note once the account has been deactivated, it is impossible to reactivate it again or reuse the username. Your user is stored indefinitely to avoid account recycling, as such you may also wish to remove any Third-Party ID's from your account **before** deactivation, as this may cause issues if you ever attempt to create a new account.

#### Erasing your Matrix Account

You can also GDPR erase your account, this means messages sent by the user will still be visible by anyone that was in the room when these messages were sent, but hidden from users joining the room afterwards. You can do this by checking the `Hide my messages from new joiners` checkbox on the `Deactivate Account` confirmation prompt.

### Deactivating a Matrix Account on your Homeserver

If you're an EMS customer, you can create your users via the <a href="https://ems.element.io/user/hosting#/admin" target="_blank" rel="noopener noreferrer">Server Admin</a> tab of the <a href="https://ems.element.io/user/hosting" target="_blank" rel="noopener noreferrer">EMS Control Panel</a>.
<!---Check out the [Server Admin]() section of the [EMS Control Panel]() doc for more guidance.--->

Alternatively you can make use of the <a href="https://matrix-org.github.io/synapse/latest/usage/administration/admin_api/" target="_blank" rel="noopener noreferrer">Synapse Admin API</a> to deactivate a Matrix Account on a homeserver you hold an Admin account on. To do so, you will need to use <a href="https://matrix-org.github.io/synapse/latest/admin_api/user_admin_api.html#deactivate-account" target="_blank" rel="noopener noreferrer">Deactivate Account</a> from the <a href="https://matrix-org.github.io/synapse/latest/admin_api/user_admin_api.html#user-admin-api" target="_blank" rel="noopener noreferrer">User Admin API</a>.
<!---For more information on using the <a href="https://matrix-org.github.io/synapse/latest/usage/administration/admin_api/" target="_blank" rel="noopener noreferrer">Synapse Admin API</a> check our [Getting Started using the Admin API]() documentation.--->

```
https://HOMESERVER_URL/_synapse/admin/v1/deactivate/FULL_USERNAME
```

```json
{
    "erase": true
}
```

# Reactivating a Matrix Account

<!---
Actions needed:
- [ ] 

# Reactivating a Matrix Account
--->

<!---<p class="callout info">Remember to check our <a href="https://ems-docs.element.io/books/kieranml-test-book/page/have-you-tried-httpselementiohelp">Looking for help?</a> page for answers to Frequently Asked Questions and our User Guide!</p>--->

<p class="callout warning"><b>Disclaimer:</b> This guide refers to using the Element Matrix clients, <a href="https://app.element.io/" target="_blank" rel="noopener noreferrer">Element Web</a> or <a href="https://element.io/download" target="_blank" rel="noopener noreferrer">Element Desktop</a> apps</p>

### Reactivating your Matrix Account

#### Matrix.org

Once your account has been deactivated, it is impossible to reactivate it again or reuse the username. Your user is stored indefinitely to avoid account recycling. To protect the security and privacy of our users, we never reactivate, or release deleted usernames. Instead, we recommend creating a new account using a different Matrix ID.

<!---#### Element One

WIP Placeholder Text: You account is tied to your EMS Account, if you wish to reactivate you will need to login to your account and re-subscribe to an Element One subscription.--->

### Reactivating a Matrix Account on your Homeserver

If you're an EMS customer, see [this FAQ entry](https://ems-docs.element.io/link/6#bkmrk-how-do-i-reactivate-).
<!---Check out the [Server Admin]() section of the [EMS Control Panel]() doc for more guidance.--->

Alternatively you can make use of the <a href="https://matrix-org.github.io/synapse/latest/usage/administration/admin_api/" target="_blank" rel="noopener noreferrer">Synapse Admin API</a> to reactivate a Matrix Account on a homeserver you hold an Admin account on. To do so, you will need to use <a href="https://matrix-org.github.io/synapse/latest/admin_api/user_admin_api.html#create-or-modify-account" target="_blank" rel="noopener noreferrer">Create or Modify Account</a> from the <a href="https://matrix-org.github.io/synapse/latest/admin_api/user_admin_api.html#user-admin-api" target="_blank" rel="noopener noreferrer">User Admin API</a>, passing `"deactivated": false` as well as providing a new password.
<!---For more information on using the <a href="https://matrix-org.github.io/synapse/latest/usage/administration/admin_api/" target="_blank" rel="noopener noreferrer">Synapse Admin API</a> check our [Getting Started using the Admin API]() documentation.--->

```
https://HOMESERVER_URL/_synapse/admin/v2/users/FULL_USERNAME
```

```json
{
    "password": "new_password"
    "deactivated": false
}
```