Reset Users E2E Key

Reset the E2E key for a user in the workspace.

Body Parameters

Example Call

curl --location 'http://localhost:3000/api/v1/users.resetE2EKey' \
--header 'x-auth-token: Q29yYlEZEByCLOQa70-QGNLRjVRN2Sky6-FLAlMXbhU' \
--header 'x-user-id: GonjPyg3gB3Z9ur9s' \
--header 'x-2fa-code: 175842' \
--data '{
    "userId":"GonjPyg3gB3Z9ur9s"
}'

Example Response

{
    "success": true
}

Error

Any of the following errors can occur on the endpoint.

  • Authorization: Requires an authentication token for the request to be made.

  • No Permission: This occurs when the authenticated user doesn't have the edit-other-user-e2ee permission.

  • Invalid User: This occurs when the userId or username in the body is invalid.

  • TOTP Required: Requires two-factor authentication for the request to be made.

  • Invalid TOTP: Requires a valid two-factor authentication code.

{
    "status": "error",
    "message": "You must be logged in to do this."
}

Change Log

Last updated

Rocket.Chat versions receive support for six months after release.