How to get users who logined in zone ?

0 votes
I'd like to know someone already login in zone and I saw getUsers function of IZone.

But I get error for using that fuction .

My code is following.

        String user_name = "abc";

        boolean isExist = false;

        List<IUser> listUsers =  (List<IUser>)izone.getUsers();       
        for(IUser u: listUsers) {
            if(u.getName().equals(user_name) == true) {
                isExist = true;
asked Jul 22, 2015 in AppWarpS2 by rongchenghan (15 points)

1 Answer

0 votes


You can get users that alreday connected with that Zone.You are doing the right thing except object casting So you can use following code snippet to get connected users, and can write your business logic accordingly.

 Collection<IUser> listUsers=izone.getUsers();

Let me know if it helps.


Vishnu Garg

answered Jul 22, 2015 by Vishnu Garg (674 points)
I already try this, but it occur error.
Collection<IUser> listUsers=izone.getUsers();

I want correct code.
Can you please share some more details like where you are calling such kind of API and please share the error you are getting.
When I use following command, it work correctly.

java.util.Collection<IUser> listUsers =  izone.getUsers();

Thanks for your advice.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on