Implements admin API to lock an user (MSC3939) (#15870)

This commit is contained in:
Mathieu Velten
2023-08-10 11:10:55 +02:00
committed by GitHub
parent 0328b56468
commit dac97642e4
19 changed files with 262 additions and 11 deletions

View File

@@ -146,6 +146,7 @@ Body parameters:
- `admin` - **bool**, optional, defaults to `false`. Whether the user is a homeserver administrator,
granting them access to the Admin API, among other things.
- `deactivated` - **bool**, optional. If unspecified, deactivation state will be left unchanged.
- `locked` - **bool**, optional. If unspecified, locked state will be left unchanged.
Note: the `password` field must also be set if both of the following are true:
- `deactivated` is set to `false` and the user was previously deactivated (you are reactivating this user)