How to show users of database with Erlang?

1.1k views Asked by At

I can't query in internal database, with console

ejabberdctl debug


Erlang/OTP 20 [erts-9.3] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:10]

Eshell V9.3  (abort with ^G)
(ejabberd@localhost)1>

Is it possible to display the registered users on the ejabberd server?

1

There are 1 answers

3
Badlop On

Yes, you can execute this command in the shell, for example:

$ ejabberdctl registered_users localhost
user1
user2
user3
user8
user9