Matrix-accounts

From Irregularpedia
Revision as of 05:34, 7 September 2024 by Maintenance script (talk | contribs) (Initial)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Matrix Account Management

Return to Matrix Server Guide

https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/registering-users.md

Create Account

<syntaxhighlight lang="shell">ansible-playbook -i inventory/hosts setup.yml --extra-vars='username=drok password=changemenowplease admin=yes' --tags=register-user</syntaxhighlight>

Access Token

https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/9f5d4018c7deff00e29d9b5846b9de028f1bc084/docs/obtaining-access-tokens.md#L1

<syntaxhighlight lang="shell">curl -XPOST -d '{

   "identifier": { "type": "m.id.user", "user": "USERNAME" },
   "password": "PASSWORD",
   "type": "m.login.password",
   "device_id": "YOURDEVICEID"

}' 'https://matrix.YOURDOMAIN/_matrix/client/r0/login'</syntaxhighlight>