on 09-06-2011 10:10 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.