Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Konstantin Netkachev
How to get all users of User Group in portlet
March 25, 2011 3:01 AM
Answer

Konstantin Netkachev

Rank: New Member

Posts: 16

Join Date: March 9, 2011

Recent Posts

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
March 28, 2011 2:50 AM
Answer

Amos Fong

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1844

Join Date: October 7, 2008

Recent Posts

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
March 28, 2011 8:01 AM
Answer

Konstantin Netkachev

Rank: New Member

Posts: 16

Join Date: March 9, 2011

Recent Posts

Thanks!
Mazhar Alam
RE: How to get all users of User Group in portlet
September 20, 2012 12:10 AM
Answer

Mazhar Alam

Rank: Regular Member

Posts: 188

Join Date: November 25, 2011

Recent Posts

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