From 7cb4837fe384a3c91bdb6113c36c3d3f7f90530a Mon Sep 17 00:00:00 2001 From: reivilibre Date: Wed, 3 Aug 2022 10:16:07 +0000 Subject: deploy: 668597214f0cfeb9d7a642ef0564e73198b7bc82 --- develop/usage/administration/admin_api/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'develop/usage/administration/admin_api/index.html') diff --git a/develop/usage/administration/admin_api/index.html b/develop/usage/administration/admin_api/index.html index 3522a67a49..411e10114c 100644 --- a/develop/usage/administration/admin_api/index.html +++ b/develop/usage/administration/admin_api/index.html @@ -150,7 +150,8 @@

Authenticate as a server admin

Many of the API calls in the admin api will require an access_token for a server admin. (Note that a server admin is distinct from a room admin.)

-

A user can be marked as a server admin by updating the database directly, e.g.:

+

An existing user can be marked as a server admin by updating the database directly.

+

Check your database settings in the configuration file, connect to the correct database using either psql [database name] (if using PostgreSQL) or sqlite3 path/to/your/database.db (if using SQLite) and elevate the user @foo:bar.com to administrator.

UPDATE users SET admin = 1 WHERE name = '@foo:bar.com';
 

A new server admin user can also be created using the register_new_matrix_user -- cgit 1.5.1