matrix / element user management
-
wrote on Aug 13, 2020, 1:44 PM last edited by girish Aug 18, 2020, 11:04 PM
Hi,
A few question please.
Just installed matrix and element.Where do I manage users in matrix/element? When I installed it I picked 'manage via app not cloudron.
Where is the dashboard / backend?Also how do I stop 'open public registrations'?
Also is there matrix / element forum?
Many thanks
-
@terrygogo Element is a frontend and Synapse is the backend. Element will follow whatever authentication mechanism you setup in Synapse.
On Cloudron, when you install synapse, there are 2 ways to set it up:
-
Allow users from Cloudron - With this, external registration is disabled. Just add users to Cloudron and then can login to Element.
-
Let the app manage users - With this ,external registration is enabled by default. If you want to disable it later, you have to comment out
enable_registration
in the config - https://github.com/matrix-org/synapse/blob/develop/docs/sample_config.yaml#L1046
-
-
wrote on May 13, 2021, 9:25 AM last edited by stantropics May 13, 2021, 9:26 AM
I am using the matrix app with cloudron user mangement. However, I would like to add some rather technical users (bots) that I do not want to add as "real" cloudron users.
I did this in synapse with:
/bin/matrix-synapse-register-user <path to homeserver.yaml> http://localhost:8008
The user seems to be added correctly, but cannot login using e.g. riot. Does anybody know if it is not possible to add users manually?
-
I am using the matrix app with cloudron user mangement. However, I would like to add some rather technical users (bots) that I do not want to add as "real" cloudron users.
I did this in synapse with:
/bin/matrix-synapse-register-user <path to homeserver.yaml> http://localhost:8008
The user seems to be added correctly, but cannot login using e.g. riot. Does anybody know if it is not possible to add users manually?
@stantropics did you figure this one out?
-
@stantropics did you figure this one out?
wrote on May 20, 2021, 10:52 AM last edited byHi @girish, thanks for getting back to this. I have indeed figured out how to make this work.
- Add a user as described before or use the synapse API:
@stantropics said in matrix / element user management:
/bin/matrix-synapse-register-user <path to homeserver.yaml> http://localhost:8008
-
If you are having problems setting a password I figured out it is not a good idea to manipulate the database, instead use the synapse API.
-
Until this point manually created users cannot login, you need to chage the config in
homeserver.yaml
as follows:
password_config: enabled: true localdb_enabled: true
localdb_enabled is false by default. Change it to true and manually added users can login.