Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Sandip Patel
how to get users associate with Team in Liferay6.1
September 23, 2012 11:45 AM
Answer

Sandip Patel

Rank: Regular Member

Posts: 191

Join Date: January 4, 2011

Recent Posts

Hi,

I am currently using Liferay 6.1 ee sp2.

I want to get list of users associate with team???

In UserLocalServiceUtil i cant find such method!!!!!!1

Please help me on this..

Regards,
Sandip Patel
Chintan Akhani
RE: how to get users associate with Team in Liferay6.1
January 15, 2013 8:23 AM
Answer

Chintan Akhani

Rank: Regular Member

Posts: 111

Join Date: March 13, 2008

Recent Posts

Hi Sandip,

I am working on LR 6.0 , so by using below provided code snippet, I would be able to get the team members.

LinkedHashMap<String, Object> userParams = new LinkedHashMap<String, Object>();
userParams.put("usersTeams", teamId);
List<User> teamUsers = UserLocalServiceUtil.search(companyId, null, true, userParams,QueryUtil.ALL_POS, QueryUtil.ALL_POS, (OrderByComparator) null);

Thanks,
Chintan