05-13-2015 8:16 AM
Hi,
This is in reference to com.sap.security.api.
I am looking for a way to add Actions to Role.
Tried the following:
IPrincipalMaint principalMaint = principalFactory.getMutablePrincipal(newRole.getUniqueID());
principalMaint.setAttribute("com.sap.security.role", "actions", {"SomeAction"});
principalMaint.save();
principalMaint.commit();
Is the way correct or am i missing something?
There are Factory for IRole, IGroup, IUser. What is the better way to get a handle for Actions and bind it to Roles?
Regards
Dixit
05-22-2015 7:32 AM
Hi Dixit,
Here is the documentation I co-wrote about modifying roles. (I am not a programmer .) Does this help you?
Editing Role Attributes - Integrating Security Functions - SAP Library