curl -sS 'https://matrix.example.com/_synapse/admin/v1/users/@alice:example.com/admin' -H "Authorization: Bearer $ACCESS_TOKEN"

Category: Matrix & Synapse

curl -sS 'https://matrix.example.com/_synapse/admin/v1/users/@alice:example.com/admin' -H "Authorization: Bearer $ACCESS_TOKEN"

Check whether a user is a server admin

Returns {"admin":true} or {"admin":false} for the given local user. A server admin can call every Admin API endpoint, which is far more powerful than being a room moderator. To change the flag, PUT to the same URL. Disabled when Matrix Authentication Service integration is enabled.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.