register_new_matrix_user
TLDR
Create a user interactively
$ register_new_matrix_user --config path/to/homeserver.yaml
Create an admin user interactively$ register_new_matrix_user --config path/to/homeserver.yaml --admin
Create admin user non-interactively$ register_new_matrix_user --config path/to/homeserver.yaml --user username --password password --admin
SYNOPSIS
register_new_matrix_user [options]
DESCRIPTION
register_new_matrix_user registers new users on a Matrix homeserver when open registration has been disabled. It reads the shared secret from the homeserver configuration to authorize user creation.
This is the official way to create users on a Synapse server with closed registration.
PARAMETERS
--config file
Path to Synapse homeserver.yaml configuration--user name
Username for the new account--password password
Password for the new account--admin
Create an administrator account
CAVEATS
Requires access to the homeserver.yaml configuration file. Non-interactive mode exposes passwords in shell history; use interactive mode for security.
HISTORY
Part of Synapse, the reference Matrix homeserver implementation. Provides administrative user management.
SEE ALSO
synctl(1)


