From cd28aadaff705c909f227c92f23b92c9639476f5 Mon Sep 17 00:00:00 2001 From: anoadragon453 Date: Tue, 18 Jan 2022 11:46:24 +0000 Subject: deploy: 4ec0a309cf8608df1d29746af76f91b8d35e5de3 --- latest/admin_api/user_admin_api.html | 71 +++++++++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) (limited to 'latest/admin_api/user_admin_api.html') diff --git a/latest/admin_api/user_admin_api.html b/latest/admin_api/user_admin_api.html index 13af7d97e1..ee311329a5 100644 --- a/latest/admin_api/user_admin_api.html +++ b/latest/admin_api/user_admin_api.html @@ -99,7 +99,7 @@ @@ -591,6 +591,75 @@ member are returned.

  • joined_rooms - An array of room_id.
  • total - Number of rooms.
  • +

    Account Data

    +

    Gets information about account data for a specific user_id.

    +

    The API is:

    +
    GET /_synapse/admin/v1/users/<user_id>/accountdata
    +
    +

    A response body like the following is returned:

    +
    {
    +    "account_data": {
    +        "global": {
    +            "m.secret_storage.key.LmIGHTg5W": {
    +                "algorithm": "m.secret_storage.v1.aes-hmac-sha2",
    +                "iv": "fwjNZatxg==",
    +                "mac": "eWh9kNnLWZUNOgnc="
    +            },
    +            "im.vector.hide_profile": {
    +                "hide_profile": true
    +            },
    +            "org.matrix.preview_urls": {
    +                "disable": false
    +            },
    +            "im.vector.riot.breadcrumb_rooms": {
    +                "rooms": [
    +                    "!LxcBDAsDUVAfJDEo:matrix.org",
    +                    "!MAhRxqasbItjOqxu:matrix.org"
    +                ]
    +            },
    +            "m.accepted_terms": {
    +                "accepted": [
    +                    "https://example.org/somewhere/privacy-1.2-en.html",
    +                    "https://example.org/somewhere/terms-2.0-en.html"
    +                ]
    +            },
    +            "im.vector.setting.breadcrumbs": {
    +                "recent_rooms": [
    +                    "!MAhRxqasbItqxuEt:matrix.org",
    +                    "!ZtSaPCawyWtxiImy:matrix.org"
    +                ]
    +            }
    +        },
    +        "rooms": {
    +            "!GUdfZSHUJibpiVqHYd:matrix.org": {
    +                "m.fully_read": {
    +                    "event_id": "$156334540fYIhZ:matrix.org"
    +                }
    +            },
    +            "!tOZwOOiqwCYQkLhV:matrix.org": {
    +                "m.fully_read": {
    +                    "event_id": "$xjsIyp4_NaVl2yPvIZs_k1Jl8tsC_Sp23wjqXPno"
    +                }
    +            }
    +        }
    +    }
    +}
    +
    +

    Parameters

    +

    The following parameters should be set in the URL:

    + +

    Response

    +

    The following fields are returned in the JSON response body:

    +

    User media

    List media uploaded by a user

    Gets a list of all local media that a specific user_id has created. -- cgit 1.5.1