cancel
Showing results for 
Search instead for 
Did you mean: 

UME - WDP Application

Former Member
0 Kudos

Hello,

if u log on to http://portalhost:50100/useradmin, there is the possibility to create roles, and assign actions (among other things) to these roles.

I found API methods for creating roles trough java code, for example:


IRoleFactory roleFactory = UMFactory.getRoleFactory();
IRole testRole = roleFactory.newRole("TEST_NEW_DYN_ROLE");
testRole.commit();

But now I'm wondering, is there also the possibility to do the following things through java:

1. Create actions/permissions. (Or can this only be done via actions.xml?)

2. Assign those actions to roles. (As done in the user admin tool)

Want i want to achieve is that i can check the permissions for the user that is currently logged in through IUser.checkPermission(...) (as in the example on help.sap.com), but instead of defining the actions and permissions at design time (actions.xml), i want to create them at runtime via a UI, because I dont want to deploy my actions.xml every time an action is created or changed....

Kind regards.

J.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Moved to:

Hope to get some answers there.