留言板

get users by site role id

thumbnail
Jignesh Vachhani,修改在11 年前。

get users by site role id

Liferay Master 帖子: 803 加入日期: 08-3-10 最近的帖子
Hi All

Does any body knows how to fetch users by site role id ?
I know there is one method available in UserLocalServiceImpl but it returns user for regular role id only.
thumbnail
Jignesh Vachhani,修改在11 年前。

RE: get users by site role id

Liferay Master 帖子: 803 加入日期: 08-3-10 最近的帖子
Guys it can be done using


userGroupRoles = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(userId, groupId);

for(UserGroupRole userGroupRole:userGroupRoles){
User oneUser=userGroupRole.getUser();
}