Forums de discussion

Organization Members

Hiran Chaudhuri, modifié il y a 12 années.

Organization Members

Regular Member Publications: 188 Date d'inscription: 01/09/10 Publications récentes
I have found so far the OrganizationLocalServiceUtil to load the organization, but there is no direct connection to users.
Looking at Organization.getGroup() I assume now that per organization Liferay creates a group. To get the group's members, I tried UserLocalService.getGroupUsers, but the list I get is always empty. Not so if I look at the control panel, where I clearly see that some users are assigned to the organization while others are not.

So how do you find out the users that are associated with some organization through Java code?
thumbnail
jelmer kuperus, modifié il y a 12 années.

RE: Organization Members (Réponse)

Liferay Legend Publications: 1191 Date d'inscription: 10/03/10 Publications récentes
I havent tried but i would imagine

UserLocalServiceUtil.getOrganizationUsers
Hiran Chaudhuri, modifié il y a 12 années.

RE: Organization Members

Regular Member Publications: 188 Date d'inscription: 01/09/10 Publications récentes
jelmer kuperus:
I havent tried but i would imagine

UserLocalServiceUtil.getOrganizationUsers

Ummm, yes that did the trick.

I was close but I just did not see it. Thanks a lot! :-)