From 9061d49ebbefffeee2de5178461086224f178a24 Mon Sep 17 00:00:00 2001
From: babolivier To use it, you will need to authenticate by providing an This API returns information about a specific user account. The api is: To use it, you will need to authenticate by providing an It returns a JSON body like the following:User Admin API
+access_token
+for a server admin: see Admin API.Query User Account
-GET /_synapse/admin/v2/users/<user_id>
access_token
for a
-server admin: Admin API{
"name": "@user:example.com",
@@ -270,8 +270,6 @@ specific
user_id
.
To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
Returns HTTP status code:
201
- When a new user object was created.password
must be provi
By default, the response is ordered by ascending user ID.
GET /_synapse/admin/v2/users?from=0&limit=10&guests=false
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
A response body like the following is returned:
{
"users": [
@@ -447,8 +443,6 @@ This allows user type specific behaviour. There are also types support
See also: Client Server API Whois.
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
It returns a JSON body like the following:
{
"user_id": "<user_id>",
@@ -490,8 +484,6 @@ were sent, but hidden from users joining the room afterwards.
"erase": true
}
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
The erase parameter is optional and defaults to false
.
An empty body may be passed for backwards compatibility.
The following actions are performed when deactivating an user:
@@ -506,6 +498,14 @@ An empty body may be passed for backwards compatibility.The following additional actions are performed during deactivation if erase
is set to true
:
true
:
true
:
"logout_devices": true
}
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
The parameter new_password
is required.
The parameter logout_devices
is optional and defaults to true
.
The api is:
GET /_synapse/admin/v1/users/<user_id>/admin
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
A response body like the following is returned:
{
"admin": true
@@ -560,15 +555,11 @@ server admin: Admin API
"admin": true
}
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
Gets a list of all room_id
that a specific user_id
is member.
The API is:
GET /_synapse/admin/v1/users/<user_id>/joined_rooms
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
A response body like the following is returned:
{
"joined_rooms": [
@@ -670,8 +661,6 @@ The newest media is on top. You can change the order with parameters
The API is:
GET /_synapse/admin/v1/users/<user_id>/media
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
A response body like the following is returned:
{
"media": [
@@ -783,8 +772,6 @@ The newest media is deleted first. You can change the order with parameters
The API is:
DELETE /_synapse/admin/v1/users/<user_id>/media
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
A response body like the following is returned:
{
"deleted_media": [
@@ -833,8 +820,6 @@ same.
The API is:
GET /_synapse/admin/v2/users/<user_id>/devices
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
A response body like the following is returned:
{
"devices": [
@@ -895,8 +880,6 @@ any access token associated with them.
],
}
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
An empty JSON dict is returned.
Parameters
The following parameters should be set in the URL:
@@ -912,8 +895,6 @@ server admin: Admin API
The API is:
GET /_synapse/admin/v2/users/<user_id>/devices/<device_id>
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
A response body like the following is returned:
{
"device_id": "<device_id>",
@@ -950,8 +931,6 @@ devices was last seen. (May be a few minutes out of date, for efficiency reasons
"display_name": "My other phone"
}
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
An empty JSON dict is returned.
Parameters
The following parameters should be set in the URL:
@@ -972,8 +951,6 @@ and invalidates any access token associated with it.
{}
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
An empty JSON dict is returned.
Parameters
The following parameters should be set in the URL:
@@ -986,8 +963,6 @@ server admin: Admin API
The API is:
GET /_synapse/admin/v1/users/<user_id>/pushers
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
A response body like the following is returned:
{
"pushers": [
@@ -1086,8 +1061,6 @@ A shadow-banned user will be unable to contact anyone on the server.
To un-shadow-ban a user the API is:
DELETE /_synapse/admin/v1/users/<user_id>/shadow_ban
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
An empty JSON dict is returned in both cases.
Parameters
The following parameters should be set in the URL:
@@ -1102,8 +1075,6 @@ There are specific APIs to set, get and delete a ratelimit.
The API is:
GET /_synapse/admin/v1/users/<user_id>/override_ratelimit
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
A response body like the following is returned:
{
"messages_per_second": 0,
@@ -1131,8 +1102,6 @@ being limited.
The API is:
POST /_synapse/admin/v1/users/<user_id>/override_ratelimit
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
A response body like the following is returned:
{
"messages_per_second": 0,
@@ -1165,8 +1134,6 @@ being limited.
The API is:
DELETE /_synapse/admin/v1/users/<user_id>/override_ratelimit
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
An empty JSON dict is returned.
{}
@@ -1185,9 +1152,8 @@ for more information.
The API is:
GET /_synapse/admin/v1/username_available?username=$localpart
-The request and response format is the same as the /_matrix/client/r0/register/available API.
-To use it, you will need to authenticate by providing an access_token
for a
-server admin: Admin API
+The request and response format is the same as the
+/_matrix/client/r0/register/available API.
--
cgit 1.5.1