Detect the whether the user is an admin or not using Smack 4.1.3 and Openfire server

Hey Guys,

I am developing a Xmpp Smack android chat app.

I need some help regarding this app.

I have Openfire server + Smack 4.1.3 libraries and developing an android client app everything is working fine. But I need to distinct the Admin and generic user in the app.

While creating the users, as I can see in Openfire it is asking **Is Administrator? (Grants admin access to Openfire). **how can I detect the whether the user is an admin or not in my app.

Any help will be apreciated… Thnx