API to CLI Mapping#

The tables below show which Synapse Admin APIs are used by their corresponding synadm commands. The left column’s entries link to the official Synapse Admin API documentation, the right column’s entries point to the synadm CLI reference. To add missing entries to a table edit one of the CSV files in our documentation source directory and submit a pull request - see feature coverage documentation for details.

Account Validity#

Synapse Admin API

synadm command(s)

Renew account

Background Updates#

Synapse Admin API

synadm command(s)

Status

Enabled

Run

Delete Group#

Synapse Admin API

synadm command(s)

Delete a local group

synadm group delete GROUP_ID

Event Reports#

Experimental Features#

Synapse Admin API

synadm command(s)

Enabling/Disabling Features

Listing Enabled Features

Media#

Purge History#

Register Users#

Synapse Admin API

synadm command(s)

Shared-Secret Registration

Registration Tokens#

Manipulate Room Membership#

Synapse Admin API

synadm command(s)

Edit Room Membership API

synadm room join ROOM_ID_OR_ALIAS

Rooms#

Server Notices#

Synapse Admin API

synadm command(s)

Server Notices

synadm notice send TO

Statistics#

Users#

Synapse Admin API

synadm command(s)

Query User Account

synadm user details USER_ID

Create or modify account

synadm user modify USER_ID

List Accounts

   List Accounts (V2)

synadm user list -f

   List Accounts (V3)

Query current sessions for a user

synadm user whois USER_ID

Deactivate Account

synadm user deactivate USER_ID

Reset password

synadm user password USER_ID

Get whether a user is a server administrator or not

Change whether a user is a server administrator or not

List room memberships of a user

synadm user membership USER_ID

Account Data

User media

   List media uploaded by a user

synadm user media -f synadm media list -u

   Delete media uploaded by a user

Login as a user

synadm user login USER_ID

Allow replacing master cross-signing key without…

User devices

   List all devices

synadm user prune-devices --list-only

   Create a device

   Delete multiple devices

synadm user prune-devices -d synadm user prune-devices -s

   Show a device

synadm user prune-devices --list-only (-i)

   Update a device

   Delete a device

synadm user prune-devices -i

List all pushers

Controlling whether a user is shadow-banned

synadm user shadow-ban USER_ID synadm user shadow-ban --unban

Override ratelimiting for users

   Get status of ratelimit

   Set ratelimit

   Delete ratelimit

Check username availability

Find a user based on their ID in an auth provider

synadm user 3pid ADDRESS

Find a user based on their Third Party ID

synadm user auth-provider EXTERNAL_USER_ID

Server Version#

Synapse Admin API

synadm command(s)

Version API

synadm version

Federation#

Miscellaneous#

Description

synadm command(s)

The Configurator

synadm config -u

Any Synapse Admin API

synadm raw ENDPOINT

Native Matrix API Helpers

   Matrix User Login

synadm matrix login USER_ID

   Any Matrix API

synadm matrix raw ENDPOINT