Skip to Content
0
Former Member
May 13, 2015 at 07:16 AM

API to add Actions to Role

26 Views

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