From 581e3ed50edd690e955aaac128bad7c2f5fd985d Mon Sep 17 00:00:00 2001
From: erikjohnston
deactivated
- bool, optional. If unspecified, deactivation state will be left unchanged.
Note: the password
field must also be set if both of the following are true:
Note:
deactivated
is set to false
and the user was previously deactivated (you are reactivating this user)password_config.enabled
and
-password_config.localdb_enabled
config options are set to true
).
+password_config.localdb_enabled
is set false
.
Users' passwords are wiped upon account deactivation, hence the need to set a new one here.Note: a user cannot be erased with this API. For more details on
@@ -388,7 +389,7 @@ that contain this value. This parameter is ignored when using the nametrue
to include guest users. This parameter is not supported when MSC3861 is enabled. See #15582
admins
- Optional flag to filter admins. If true
, only admins are queried. If false
, admins are excluded from
+
admins
- Optional flag to filter admins. If true
, only admins are queried. If false
, admins are excluded from
the query. When the flag is absent (the default), both admins and non-admins are included in the search results.
is_guest
- bool - Status if that user is a guest account.admin
- bool - Status if that user is a server administrator.user_type
- string - Type of the user. Normal users are type None
.
-This allows user type specific behaviour. There are also types support
and bot
. support
and bot
.
deactivated
- bool - Status if that user has been marked as deactivated.erased
- bool - Status if that user has been marked as erased.shadow_banned
- bool - Status if that user has been marked as shadow banned.Creates a new device for a specific user_id
and device_id
. Does nothing if the device_id
+
Creates a new device for a specific user_id
and device_id
. Does nothing if the device_id
exists already.
The API is:
POST /_synapse/admin/v2/users/<user_id>/devices
@@ -1261,10 +1262,10 @@ being limited.
be local.
Check username availability
-Checks to see if a username is available, and valid, for the server. See the client-server
+Checks to see if a username is available, and valid, for the server. See the client-server
API
for more information.
-This endpoint will work even if registration is disabled on the server, unlike
+
This endpoint will work even if registration is disabled on the server, unlike
/_matrix/client/r0/register/available
.
The API is:
GET /_synapse/admin/v1/username_available?username=$localpart
--
cgit 1.5.1