Skip to Content
0
Former Member
Dec 13, 2006 at 03:54 PM

Getting portal groups, not R3 groups

22 Views

Hi all,

I have been following threads in order to get all the ep groups doing by this

IGroupFactory groupFactory = UMFactory.getGroupFactory();
IGroupSearchFilter groupFilter = groupFactory.getGroupSearchFilter();

//Filter option 1						
groupFilter.setSearchAttribute("com.sap.security.core.usermanagement","displayname","*",ISearchAttribute.LIKE_OPERATOR,false);
//Filter option 2
groupFilter.setDisplayName*",ISearchAttribute.LIKE_OPERATOR, false);
						
com.sap.security.api.ISearchResult srGroups = groupFactory.searchGroups(groupFilter);

			
while(srGroups.hasNext()){
	String unicID = (String) srGroups.next();
	com.sap.security.api.IGroup group = groupFactory.getMutableGroup(unicID);
...
...
	//myArray [] = group.getDisplayName().toString();
...
...
}

the problem cames because I also get all R/3 groups and I only want de Portal ones. I have been trying filtering by attributes but I got no success.

Somebody has ideas?

Thanks in advance,