11# User Admin API
22
3+ To use it, you will need to authenticate by providing an ` access_token `
4+ for a server admin: see [ Admin API] ( ../usage/administration/admin_api ) .
5+
36## Query User Account
47
58This API returns information about a specific user account.
@@ -10,9 +13,6 @@ The api is:
1013GET /_synapse/admin/v2/users/<user_id>
1114```
1215
13- To use it, you will need to authenticate by providing an ` access_token ` for a
14- server admin: [ Admin API] ( ../usage/administration/admin_api )
15-
1616It returns a JSON body like the following:
1717
1818``` jsonc
@@ -104,9 +104,6 @@ with a body of:
104104}
105105```
106106
107- To use it, you will need to authenticate by providing an ` access_token ` for a
108- server admin: [ Admin API] ( ../usage/administration/admin_api )
109-
110107Returns HTTP status code:
111108- ` 201 ` - When a new user object was created.
112109- ` 200 ` - When a user was modified.
@@ -156,9 +153,6 @@ By default, the response is ordered by ascending user ID.
156153GET /_synapse/admin/v2/users?from=0&limit=10&guests=false
157154```
158155
159- To use it, you will need to authenticate by providing an ` access_token ` for a
160- server admin: [ Admin API] ( ../usage/administration/admin_api )
161-
162156A response body like the following is returned:
163157
164158``` json
@@ -278,9 +272,6 @@ GET /_matrix/client/r0/admin/whois/<userId>
278272See also: [ Client Server
279273API Whois] ( https://matrix.org/docs/spec/client_server/r0.6.1#get-matrix-client-r0-admin-whois-userid ) .
280274
281- To use it, you will need to authenticate by providing an ` access_token ` for a
282- server admin: [ Admin API] ( ../usage/administration/admin_api )
283-
284275It returns a JSON body like the following:
285276
286277``` json
@@ -335,9 +326,6 @@ with a body of:
335326}
336327```
337328
338- To use it, you will need to authenticate by providing an ` access_token ` for a
339- server admin: [ Admin API] ( ../usage/administration/admin_api )
340-
341329The erase parameter is optional and defaults to ` false ` .
342330An empty body may be passed for backwards compatibility.
343331
@@ -394,9 +382,6 @@ with a body of:
394382}
395383```
396384
397- To use it, you will need to authenticate by providing an ` access_token ` for a
398- server admin: [ Admin API] ( ../usage/administration/admin_api )
399-
400385The parameter ` new_password ` is required.
401386The parameter ` logout_devices ` is optional and defaults to ` true ` .
402387
@@ -409,9 +394,6 @@ The api is:
409394GET /_synapse/admin/v1/users/<user_id>/admin
410395```
411396
412- To use it, you will need to authenticate by providing an ` access_token ` for a
413- server admin: [ Admin API] ( ../usage/administration/admin_api )
414-
415397A response body like the following is returned:
416398
417399``` json
@@ -439,10 +421,6 @@ with a body of:
439421}
440422```
441423
442- To use it, you will need to authenticate by providing an ` access_token ` for a
443- server admin: [ Admin API] ( ../usage/administration/admin_api )
444-
445-
446424## List room memberships of a user
447425
448426Gets a list of all ` room_id ` that a specific ` user_id ` is member.
@@ -453,9 +431,6 @@ The API is:
453431GET /_synapse/admin/v1/users/<user_id>/joined_rooms
454432```
455433
456- To use it, you will need to authenticate by providing an ` access_token ` for a
457- server admin: [ Admin API] ( ../usage/administration/admin_api )
458-
459434A response body like the following is returned:
460435
461436``` json
@@ -574,9 +549,6 @@ The API is:
574549GET /_synapse/admin/v1/users/<user_id>/media
575550```
576551
577- To use it, you will need to authenticate by providing an ` access_token ` for a
578- server admin: [ Admin API] ( ../usage/administration/admin_api )
579-
580552A response body like the following is returned:
581553
582554``` json
@@ -691,9 +663,6 @@ The API is:
691663DELETE /_synapse/admin/v1/users/<user_id>/media
692664```
693665
694- To use it, you will need to authenticate by providing an ` access_token ` for a
695- server admin: [ Admin API] ( ../usage/administration/admin_api )
696-
697666A response body like the following is returned:
698667
699668``` json
@@ -766,9 +735,6 @@ The API is:
766735GET /_synapse/admin/v2/users/<user_id>/devices
767736```
768737
769- To use it, you will need to authenticate by providing an ` access_token ` for a
770- server admin: [ Admin API] ( ../usage/administration/admin_api )
771-
772738A response body like the following is returned:
773739
774740``` json
@@ -834,9 +800,6 @@ POST /_synapse/admin/v2/users/<user_id>/delete_devices
834800}
835801```
836802
837- To use it, you will need to authenticate by providing an ` access_token ` for a
838- server admin: [ Admin API] ( ../usage/administration/admin_api )
839-
840803An empty JSON dict is returned.
841804
842805** Parameters**
@@ -858,9 +821,6 @@ The API is:
858821GET /_synapse/admin/v2/users/<user_id>/devices/<device_id>
859822```
860823
861- To use it, you will need to authenticate by providing an ` access_token ` for a
862- server admin: [ Admin API] ( ../usage/administration/admin_api )
863-
864824A response body like the following is returned:
865825
866826``` json
@@ -906,9 +866,6 @@ PUT /_synapse/admin/v2/users/<user_id>/devices/<device_id>
906866}
907867```
908868
909- To use it, you will need to authenticate by providing an ` access_token ` for a
910- server admin: [ Admin API] ( ../usage/administration/admin_api )
911-
912869An empty JSON dict is returned.
913870
914871** Parameters**
@@ -935,9 +892,6 @@ DELETE /_synapse/admin/v2/users/<user_id>/devices/<device_id>
935892{}
936893```
937894
938- To use it, you will need to authenticate by providing an ` access_token ` for a
939- server admin: [ Admin API] ( ../usage/administration/admin_api )
940-
941895An empty JSON dict is returned.
942896
943897** Parameters**
@@ -956,9 +910,6 @@ The API is:
956910GET /_synapse/admin/v1/users/<user_id>/pushers
957911```
958912
959- To use it, you will need to authenticate by providing an ` access_token ` for a
960- server admin: [ Admin API] ( ../usage/administration/admin_api )
961-
962913A response body like the following is returned:
963914
964915``` json
@@ -1053,9 +1004,6 @@ To un-shadow-ban a user the API is:
10531004DELETE /_synapse/admin/v1/users/<user_id>/shadow_ban
10541005```
10551006
1056- To use it, you will need to authenticate by providing an ` access_token ` for a
1057- server admin: [ Admin API] ( ../usage/administration/admin_api )
1058-
10591007An empty JSON dict is returned in both cases.
10601008
10611009** Parameters**
@@ -1078,9 +1026,6 @@ The API is:
10781026GET /_synapse/admin/v1/users/<user_id>/override_ratelimit
10791027```
10801028
1081- To use it, you will need to authenticate by providing an ` access_token ` for a
1082- server admin: [ Admin API] ( ../usage/administration/admin_api )
1083-
10841029A response body like the following is returned:
10851030
10861031``` json
@@ -1120,9 +1065,6 @@ The API is:
11201065POST /_synapse/admin/v1/users/<user_id>/override_ratelimit
11211066```
11221067
1123- To use it, you will need to authenticate by providing an ` access_token ` for a
1124- server admin: [ Admin API] ( ../usage/administration/admin_api )
1125-
11261068A response body like the following is returned:
11271069
11281070``` json
@@ -1165,9 +1107,6 @@ The API is:
11651107DELETE /_synapse/admin/v1/users/<user_id>/override_ratelimit
11661108```
11671109
1168- To use it, you will need to authenticate by providing an ` access_token ` for a
1169- server admin: [ Admin API] ( ../usage/administration/admin_api )
1170-
11711110An empty JSON dict is returned.
11721111
11731112``` json
@@ -1196,7 +1135,5 @@ The API is:
11961135GET /_synapse/admin/v1/username_available?username=$localpart
11971136```
11981137
1199- The request and response format is the same as the [ /_ matrix/client/r0/register/available] ( https://matrix.org/docs/spec/client_server/r0.6.0#get-matrix-client-r0-register-available ) API.
1200-
1201- To use it, you will need to authenticate by providing an ` access_token ` for a
1202- server admin: [ Admin API] ( ../usage/administration/admin_api )
1138+ The request and response format is the same as the
1139+ [ /_ matrix/client/r0/register/available] ( https://matrix.org/docs/spec/client_server/r0.6.0#get-matrix-client-r0-register-available ) API.
0 commit comments