Foros de discusión

How to get all users of User Group in portlet

Konstantin Netkachev, modificado hace 13 años.

How to get all users of User Group in portlet

New Member Mensajes: 16 Fecha de incorporación: 9/03/11 Mensajes recientes
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, modificado hace 13 años.

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

Liferay Legend Mensajes: 2047 Fecha de incorporación: 7/10/08 Mensajes recientes
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, modificado hace 13 años.

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

New Member Mensajes: 16 Fecha de incorporación: 9/03/11 Mensajes recientes
Thanks!
thumbnail
Mazhar Alam, modificado hace 11 años.

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

Regular Member Mensajes: 191 Fecha de incorporación: 25/11/11 Mensajes recientes
http://www.liferay.com/community/forums/-/message_boards/message/16551298