2018-08-08 10:07:02 +03:00
# Registering users
Run this to create a new user account on your Matrix server.
You can do it via this Ansible playbook (make sure to edit the `<your-username>` and `<your-password>` part below):
2019-05-10 15:38:22 -05:00
```
ansible-playbook -i inventory/hosts setup.yml --extra-vars='username=<your-username> password=<your-password> admin=<yes|no>' --tags=register-user
```
2018-08-08 10:07:02 +03:00
**or** using the command-line after **SSH ** -ing to your server (requires that [all services have been started ](#starting-the-services )):
2019-05-10 15:38:22 -05:00
```
/usr/local/bin/matrix-synapse-register-user <your-username> <your-password> <admin access: 0 or 1>
```
2018-08-08 10:07:02 +03:00
2018-09-17 10:51:46 +03:00
**Note**: `<your-username>` is just a plain username (like `john` ), not your full `@<username>:<your-domain>` identifier.
**You can then log in with that user** via the riot-web service that this playbook has created for you at a URL like this: `https://riot.<domain>/` .
-----
2018-11-28 11:02:15 +01:00
If you've just installed Matrix, **to finalize the installation process ** , it's best if you proceed to [Configuring service discovery via .well-known ](configuring-well-known.md )
-----
2020-01-20 12:59:36 -08:00
## Adding/Removing Administrator privileges to an existing user.
The script `/usr/local/bin/matrix-change-user-admin-status` may be used to change a user's admin privileges.
2018-11-28 11:02:15 +01:00
* log on to your server with ssh
2020-01-19 18:35:57 -08:00
* execute with the username and 0/1 (0 = non-admin | 1 = admin)
2018-11-28 11:02:15 +01:00
2019-05-10 15:38:22 -05:00
```
2020-01-19 18:35:57 -08:00
/usr/local/bin/matrix-change-user-admin-status <username> <0/1>
2019-05-10 15:38:22 -05:00
```