Forums de discussion

How to get all users of User Group in portlet

Konstantin Netkachev, modifié il y a 13 années.

How to get all users of User Group in portlet

New Member Publications: 16 Date d'inscription: 09/03/11 Publications récentes
Hello, I try to get all users list of the User Group in portlet.

UserServiceImpl has method getGroupUserIds(long groupId), but in this case search processes by groups of the GROUP_ table. What difference between GROUP_ and USERGROUP?
And how to retrieve users by USERGROUP?
thumbnail
Amos Fong, modifié il y a 13 années.

RE: How to get all users of User Group in portlet

Liferay Legend Publications: 2047 Date d'inscription: 07/10/08 Publications récentes
Hi Konstantin,

In the code, group is the same thing as a community. Depending on what you are doing, you should probably user UserLocalSErviceImpl because it does not check permissions for the current user. Also it should have the getusergroupusers() method you need.
Konstantin Netkachev, modifié il y a 13 années.

RE: How to get all users of User Group in portlet

New Member Publications: 16 Date d'inscription: 09/03/11 Publications récentes
Thanks!
thumbnail
Mazhar Alam, modifié il y a 11 années.

RE: How to get all users of User Group in portlet

Regular Member Publications: 191 Date d'inscription: 25/11/11 Publications récentes
http://www.liferay.com/community/forums/-/message_boards/message/16551298