Skip to content
Snippets Groups Projects
Commit f014ea9b authored by Olivier Wilkinson (reivilibre)'s avatar Olivier Wilkinson (reivilibre) Committed by Erik Johnston
Browse files

Document GET method for retrieving admin bit of user in admin API

parent b0cf4228
No related branches found
No related tags found
No related merge requests found
...@@ -86,6 +86,25 @@ with a body of: ...@@ -86,6 +86,25 @@ with a body of:
including an ``access_token`` of a server admin. including an ``access_token`` of a server admin.
Get whether a user is a server administrator or not
===================================================
The api is::
GET /_synapse/admin/v1/users/<user_id>/admin
including an ``access_token`` of a server admin.
A response body like the following is returned:
.. code:: json
{
"admin": true
}
Change whether a user is a server administrator or not Change whether a user is a server administrator or not
====================================================== ======================================================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment