Skip to Content
author's profile photo Former Member
Former Member

API to add Actions to Role


This is in reference to

I am looking for a way to add Actions to Role.

Tried the following:

IPrincipalMaint principalMaint = principalFactory.getMutablePrincipal(newRole.getUniqueID());

principalMaint.setAttribute("", "actions", {"SomeAction"});;


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?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on May 22, 2015 at 06: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.