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

Gaurav Jain monkeyfdude at gmail.com
Sun May 24 02:52:31 MSK 2015

I create users with ejabberd_admin register command. I do not use in-band

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?


*  "stdout": "User user124 at example.com <user124 at example.com> already
registered at node ejabberd at localhost\n",*

*  "stderr": "",*

*  "error": {*

*    "killed": false,*

*    "code": 1,*

*    "signal": null*

*  }*


Best Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20150523/7bca632b/attachment.html>

More information about the ejabberd mailing list