-
Dirk Klimpel authoredDirk Klimpel authored
user_admin_api.rst 20.29 KiB
Contents
- Query User Account
- Create or modify Account
- List Accounts
- Query current sessions for a user
- Deactivate Account
- Reset password
- Get whether a user is a server administrator or not
- Change whether a user is a server administrator or not
- List room memberships of an user
- List media of an user
- Login as a user
- User devices
- List all pushers
Query User Account
This API returns information about a specific user account.
The api is:
GET /_synapse/admin/v2/users/<user_id>
To use it, you will need to authenticate by providing an access_token
for a
server admin: see README.rst.
It returns a JSON body like the following:
{
"displayname": "User",
"threepids": [
{
"medium": "email",
"address": "<user_mail_1>"
},
{
"medium": "email",
"address": "<user_mail_2>"
}
],
"avatar_url": "<avatar_url>",
"admin": false,
"deactivated": false,
"password_hash": "$2b$12$p9B4GkqYdRTPGD",
"creation_ts": 1560432506,
"appservice_id": null,
"consent_server_notice_sent": null,
"consent_version": null
}
URL parameters: