cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch all the portal groups into dropdown through webdynpro Java App

Former Member
0 Kudos

Hello All,

I have a requirement where I have to fetch all the groups available in user administrator in portal into a dropdown, so that the admin can select the group from the dropdown and after that when he executes a button u201CGet Detailsu201D he must be able to get the list of users who has been assigned that group .

I need to achieve this through WebDynpro Java.

Any pointers or documents on this is very very helpful.

Thanks,

Manasa.

Edited by: Manasa Boyapati on Sep 12, 2011 7:25 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Can you try using the below code ?

IUser uid = UMFactory.getUserFactory().getUserByLogonID(Userid);
Iterator groups =  uid.getParentGroups(false);
while (groups.hasNext())	
{    
  String str_grpname = (String)groups.next();
  IGroup Group = UMFactory.getGroupFactory().getGroup(str_grpname);
 ary_groups.add(Group.getUniqueName());
}

Hope you can achieve you results by tweeking this..

Regards,

Vijay.