[ejabberd] Find out if user already exist - ejabberd admin

Holger Weiß holger at zedat.fu-berlin.de
Tue May 26 12:21:34 MSK 2015

* Gaurav Jain <monkeyfdude at gmail.com> [2015-05-23 16:52]:
> I create users with ejabberd_admin register command. I do not use in-band
> regsitration.
> For the same I wanted to find out, if user already exist. I get following
> error from ejabberd when sent a request thru node.js server.
> What should I look for in the error message to consistently find out if
> user already exists?
> Is there any other API to do the same?

That node.js code seems to run ejabberdctl to call the register command.
If you want to avoid parsing the ejabberdctl output, you could use the
XML-RPC interface instead:



More information about the ejabberd mailing list