Fórum

How to get all user list of a particular Role name or Role Id in liferay

thumbnail
Omkar Khandare, modificado 12 Anos atrás.

How to get all user list of a particular Role name or Role Id in liferay

Junior Member Postagens: 49 Data de Entrada: 07/03/12 Postagens Recentes
I want use all existing users list in liferay Database of a particular role in my project.

So i can maintain the record of all users of a particular role and Provide them certain functionality.

Please Help.
thumbnail
Juhi Kumari, modificado 12 Anos atrás.

RE: How to get all user list of a particular Role name or Role Id in lifera

Expert Postagens: 347 Data de Entrada: 12/12/11 Postagens Recentes
Hi Omkar

Use this one to get all users belonging to a role.
List<user> users = UserLocalServiceUtil.getRoleUsers(roleId)</user>


Regards
Juhi