From a0b48f3858b0e97ab638aed04c3e63b1af5e270f Mon Sep 17 00:00:00 2001 From: Timothy Arnold Date: Sat, 13 Aug 2022 12:52:03 -0500 Subject: [PATCH] Adding access token information and admin info --- docs/administration/4_adminapi.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/administration/4_adminapi.md b/docs/administration/4_adminapi.md index 610879575..92e483091 100644 --- a/docs/administration/4_adminapi.md +++ b/docs/administration/4_adminapi.md @@ -19,6 +19,18 @@ Endpoints may be used directly through curl: curl --header "Authorization: Bearer " -X -d '' ``` +An `access_token` can be obtained through most Element-based matrix clients by going to `Settings` -> `Help & About` -> `Advanced` -> `Access Token`. + +The user must be an administrator in the `account_accounts` table in order to use these endpoints. + +Existing user accounts can be set to administrative accounts by changing `account_type` to `3` in `account_accounts` + +``` +UPDATE account_accounts SET account_type = 3 WHERE localpart = '$localpart'; +``` + +Where `$localpart` is the username only (e.g. `alice`). + ## GET `/_dendrite/admin/evacuateRoom/{roomID}` This endpoint will instruct Dendrite to part all local users from the given `roomID`