掲示板

get users by site role id

thumbnail
11年前 に Jignesh Vachhani によって更新されました。

get users by site role id

Liferay Master 投稿: 803 参加年月日: 08/03/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
11年前 に Jignesh Vachhani によって更新されました。

RE: get users by site role id

Liferay Master 投稿: 803 参加年月日: 08/03/10 最新の投稿
Guys it can be done using


userGroupRoles = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(userId, groupId);

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