Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Konstantin Netkachev
How to get all users of User Group in portlet
25. März 2011 03:01
Antwort

Konstantin Netkachev

Rang: New Member

Nachrichten: 16

Eintrittsdatum: 9. März 2011

Neue Beiträge

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?
Amos Fong
RE: How to get all users of User Group in portlet
28. März 2011 02:50
Antwort

Amos Fong

LIFERAY STAFF

Rang: Liferay Legend

Nachrichten: 1898

Eintrittsdatum: 7. Oktober 2008

Neue Beiträge

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
RE: How to get all users of User Group in portlet
28. März 2011 08:01
Antwort

Konstantin Netkachev

Rang: New Member

Nachrichten: 16

Eintrittsdatum: 9. März 2011

Neue Beiträge

Thanks!
Mazhar Alam
RE: How to get all users of User Group in portlet
20. September 2012 00:10
Antwort

Mazhar Alam

Rang: Regular Member

Nachrichten: 201

Eintrittsdatum: 25. November 2011

Neue Beiträge

http://www.liferay.com/community/forums/-/message_boards/message/16551298