Is it possible to get all users list which contain in the openfire?

1.3k Views Asked by At

I am doing an app chat in android by asmack with XMPP and want to user client install the application he will be able to retrieve The list of all the users which contain on the database. This will allow to the client be able to select user from the List and joined him to list friend one on one. How can I do that?

If it not possible, how can achieve that?

1

There are 1 best solutions below

8
On BEST ANSWER
  1. Get the WebManager Instance.
WebManager webMan = ...;

UserManager userMan = webMan.getUserManager();

userMan.getUsers(); // Returns the user collection.

UserManager API

From the collection list you can get all the users you wany.