Forums de discussion

How to get users by role incl. community roles [RESOLVED]

M J, modifié il y a 13 années.

How to get users by role incl. community roles [RESOLVED]

New Member Publications: 8 Date d'inscription: 07/07/10 Publications récentes
Hi

I'm trying to get all users which belong to a specific role, regardless of the role scope.
Using

UserLocalServiceUtil.getRoleUsers(role.getRoleId());

does only return members of portal roles and excludes community roles.
Are there any alternatives which do include community roles?

I'm working with Liferay 5.2.1 and the ext environment.
thumbnail
Shagul Khajamohideen, modifié il y a 13 années.

RE: How to get users by role incl. community roles (Réponse)

Liferay Master Publications: 758 Date d'inscription: 27/09/07 Publications récentes
UserGroupRole services should provide group (organization and community) roles.
M J, modifié il y a 13 années.

RE: How to get users by role incl. community roles

New Member Publications: 8 Date d'inscription: 07/07/10 Publications récentes
That's exactly what I was looking for!

Thank you for your quick response.