Matrix Messaging

How can I use command line and how can I register and delete users from it ?

@kanhu , in my knowledges for now there are no command to manage the server. I never found a documentation about command line in synapse project (https://github.com/matrix-org/synapse).
But in the yunohost instance the user is managed by yunohost. So you can add or remove user in yunohost (by yunohost command) and it will be affected in synapse.

If anybody know something about this I really interested…

@Josue I want to only few users for the matrix and don’t want account on the Yunohost. I have made few accounts for the and changed is_public to 0 and upgraded the app. But now I want to delete some of the accounts.

@Josue it seems to me that if you create a user through Yunohost, then you can manage it (and so remove it).
But if your Matrix instance is public, then you can create users directly from a Matrix client (Riot for instance), but then the users can’t be managed by Yunohost (it is not in the LDAP of Yunohost indeed). In that case, I didn’t find either the way to know the number of users.
Is there a way to access to the new Matrix database ? Could users be managed that way ?

With the last synapse package the database is stored in postgresql. So you can access by this following command (as root) :
sudo -u postgres psql -d matrix_synapse

You can try to find the user and delete it but I can’t warranties that it will be ok and you won’t break something.

At my knowledge nothing is documented to remove a user, so I don’t know if it’s really possible. You can see with the matrix community, maybe you will find for information and better answer.

Thanks for the tip, it’s pretty handy :slight_smile:

Is it possible to subscribe (or configure after account creation) with an email address ?
I only get "Untrusted ID server ‘domain.tdl’ when I try to do so.

@Josue I want to stop federation with other servers. Is it possible?

I don’t know if it’s possible because it is in relation with the identity server witch is managed by the matrix community.
In my knowledge when you use an email address for the authentication the browser get the user ID from the identity server.

I think not.
See the issue here : https://github.com/matrix-org/synapse/issues/2619

1 Like

Which is my server if I understand well (I setup my client to use it as identity server at least), and it doesn’t consider it as secure/legitimate, do I understand it correctly ?

No it’s not the homeserver. The identity server is by defaut at vector.im

But I configured my Riot client to use my server as identity server.

Did you have really installed the identity server on your server ? In my app (synapse_ynh) where are NO identity server !!

No I didn’t, it’s just on client side. I followed these instructions: Matrix Messaging

So I should configure it with vector.im as identity server ?

Yes, normally everything is true by default. You need to change nothing about that. Juste the homeserver if you didn’t set the true value on the riot install.

What do you mean ?

On the riot install, you have a question Chose a default home server and if you have your own homeserver (synapse) you should type something like : your-own-homeserver.tld

I’m using Riot desktop client.

ok, in this case just put on the homeserver field “you homeserver” and leave the default value for identity server.