List users

13,183 views
Skip to first unread message

Karsten Hoffmann

unread,
Jan 7, 2011, 9:21:56 AM1/7/11
to Prosody IM Users
Hello,

With prosodyctl I can add and delete users. But how I do list all
existing users?

Thanks in advance.

Regards
Karsten

Michael Düll

unread,
Jan 7, 2011, 11:29:24 AM1/7/11
to prosod...@googlegroups.com
Like that for example:

ls -l /var/lib/prosody/*/accounts/*

--
GPG: 0xDDEEF520
Jabber: aku...@luatalk.net

signature.asc

Karsten Hoffmann

unread,
Jan 10, 2011, 5:39:28 AM1/10/11
to Prosody IM Users
Hello Michael,

That's not what I want. I mean a command like:

prosodyctl listuser

and then:

us...@domain1.com
us...@domain2.com
us...@domain2.org
us...@domain3.com

Regards
Karsten
>  signature.asc
> < 1KViewDownload

Matthew Wild

unread,
Jan 10, 2011, 12:09:59 PM1/10/11
to prosod...@googlegroups.com
On 10 January 2011 10:39, Karsten Hoffmann <hoffma...@googlemail.com> wrote:
> Hello Michael,
>
> That's not what I want. I mean a command like:
>
> prosodyctl listuser
>

Download this module, and put it in your modules directory:
http://prosody.im/files/mod_listusers.lua ( /usr/lib/prosody/modules
on most systems).

Then run: prosodyctl mod_listusers

Regards,
Matthew

Karsten Hoffmann

unread,
Jan 11, 2011, 9:12:09 AM1/11/11
to Prosody IM Users
Hello Matthew,

Pretty cool. Works perfectly. SQL storage support also works quite
well.

Regards
Karsten


On Jan 10, 6:09 pm, Matthew Wild <mwi...@gmail.com> wrote:
> On 10 January 2011 10:39, Karsten Hoffmann <hoffmann....@googlemail.com> wrote:
>
> > Hello Michael,
>
> > That's not what I want. I mean a command like:
>
> > prosodyctl listuser
>
> Download this module, and put it in your modules directory:http://prosody.im/files/mod_listusers.lua( /usr/lib/prosody/modules

Matthew Wild

unread,
Jan 11, 2011, 9:13:04 AM1/11/11
to prosod...@googlegroups.com
On 11 January 2011 14:12, Karsten Hoffmann <hoffma...@googlemail.com> wrote:
> Hello Matthew,
>
> Pretty cool. Works perfectly. SQL storage support also works quite
> well.
>

Excellent. Stay tuned for the release :)

Matthew

Tim Dittler

unread,
Jan 14, 2014, 4:59:49 AM1/14/14
to prosod...@googlegroups.com
Sadly the command does nothing for me with prosody 0.9.2 and Debian stable.
It doesn't show the help-message, so i think the call works, but it doesn't show any users.
I use MySQL backend.
Any ideas?

Kim Alvefur

unread,
Jan 14, 2014, 11:13:18 AM1/14/14
to prosod...@googlegroups.com
The linked plugin lists the files in the internal storage directory
directly. It will not work with any other storage backend. In 0.9+,
there is a user:list() command in the telnet console that lists all
users, if the storage has implemented support for it.

Note that this will block the server until it has listed all users,
which might take few seconds if you have a very large number of users.

--
Kim "Zash" Alvefur

signature.asc
Reply all
Reply to author
Forward
0 new messages