summary refs log tree commit diff
path: root/develop/print.html
diff options
context:
space:
mode:
authorreivilibre <reivilibre@users.noreply.github.com>2022-08-03 10:16:07 +0000
committerreivilibre <reivilibre@users.noreply.github.com>2022-08-03 10:16:07 +0000
commit7cb4837fe384a3c91bdb6113c36c3d3f7f90530a (patch)
treef7968135344d361cfb5a52856c82569dcdfacf88 /develop/print.html
parentdeploy: fb7a2cc4cc7f0b49cabeec08d4ceb2dd2350e945 (diff)
downloadsynapse-7cb4837fe384a3c91bdb6113c36c3d3f7f90530a.tar.xz
deploy: 668597214f0cfeb9d7a642ef0564e73198b7bc82
Diffstat (limited to 'develop/print.html')
-rw-r--r--develop/print.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/develop/print.html b/develop/print.html
index 0eb959cc4c..2dd1c2163b 100644
--- a/develop/print.html
+++ b/develop/print.html
@@ -10266,7 +10266,8 @@ the changes being applied at a glance.</p>
 <h2 id="authenticate-as-a-server-admin"><a class="header" href="#authenticate-as-a-server-admin">Authenticate as a server admin</a></h2>
 <p>Many of the API calls in the admin api will require an <code>access_token</code> for a
 server admin. (Note that a server admin is distinct from a room admin.)</p>
-<p>A user can be marked as a server admin by updating the database directly, e.g.:</p>
+<p>An existing user can be marked as a server admin by updating the database directly.</p>
+<p>Check your <a href="usage/administration/admin_api/config_documentation.html#database">database settings</a> in the configuration file, connect to the correct database using either <code>psql [database name]</code> (if using PostgreSQL) or <code>sqlite3 path/to/your/database.db</code> (if using SQLite) and elevate the user <code>@foo:bar.com</code> to administrator.</p>
 <pre><code class="language-sql">UPDATE users SET admin = 1 WHERE name = '@foo:bar.com';
 </code></pre>
 <p>A new server admin user can also be created using the <code>register_new_matrix_user</code>