I'am actually working on SAP BO with SDK (java) and i try to assign it to a new user with his username (or ID) .
first i need to delete all effectivePrincipals of an object in the cms and then add the user.
this is my code now :
(connection to cms ... )
(getting objects ...)
ISecurityInfo2 isi2 = dtm.getSecurityInfo2();
IEffectivePrincipals effectivePrincipals = isi2.getEffectivePrincipals();
System.out.println("Size of profiles : " + effectivePrincipals.size()); (output : 15) .
(.. i need to delete them all and add user instead ) (no delete or remove found in the effectiveprincipals interface)
I thank you in advance for any help.