Quantcast
Channel: SCN : Discussion List - Security
Viewing all articles
Browse latest Browse all 2353

API to add Actions to Role

$
0
0

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


Viewing all articles
Browse latest Browse all 2353

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>