Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
mohammad azaruddin
User List Based On Roles
February 18, 2013 11:07 PM
Answer

mohammad azaruddin

Rank: Expert

Posts: 434

Join Date: September 17, 2012

Recent Posts

User List Based On Roles
Juhi Kumari
RE: User List Based On Roles
February 18, 2013 11:12 PM
Answer

Juhi Kumari

Rank: Expert

Posts: 347

Join Date: December 12, 2011

Recent Posts

Hi
1List<User> userList = UserLocalServiceUtil.getRoleUsers(roleId);


Regards
Juhi
Gnaniyar Zubair
RE: User List Based On Roles
February 18, 2013 11:16 PM
Answer

Gnaniyar Zubair

Rank: Liferay Master

Posts: 601

Join Date: December 19, 2007

Recent Posts

In addition to that, Get the role id

Role role= RoleLocalServiceUtil.getRole(company.getCompanyId(), "MY-CUSTOM-ROLE");
long roleId = role.getRoleId()



then
List<User> userList = UserLocalServiceUtil.getRoleUsers(roleId);
mohammad azaruddin
RE: User List Based On Roles
February 18, 2013 11:23 PM
Answer

mohammad azaruddin

Rank: Expert

Posts: 434

Join Date: September 17, 2012

Recent Posts

Hi
The question is incomplete.can u please check this Link