cancel
Showing results for 
Search instead for 
Did you mean: 

Getting portal groups, not R3 groups

Former Member
0 Kudos

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,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi, i think you can work around it byt first getting all the portal roles(as you found out the groups)

and then finding out the groups assigned to each portal role or alternatively you can find out the sap

groups through a RFC call and filter those out from what you already have.

Thanks

Firasath

Message was edited by:

Firasath Riyaz

Message was edited by:

Firasath Riyaz

Message was edited by:

Firasath Riyaz