Skip to Content
0
Former Member
Nov 08, 2007 at 02:59 AM

UME API : delete user from a group

81 Views

Hello,

I try this :

IGroup grp2 = UMFactory.getGroupFactory().getGroupByUniqueName(im_group);

boolean check2 = false;

if ( grp2.isUserMember(epUser.getUniqueID(), check2))

{

grp2.removeGroupMember(epUser.getUniqueID());

}

But exception says :

0#0#Error##Plain###com.sap.security.api.UMRuntimeException: Maint method remove attribute cannot be used because the principal is not mutable!