Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Role Assignement to USER ID

arpit_shah
Contributor
0 Kudos

Hi,

In our system structural(indirect) authorization is maintained, business needs to convert to direct assignment.

For this I required any FM or BAPI to assign mass roles to user id without changing the current assignment.

I found a one bapi "BAPI_USER_ACTGROUPS_ASSIGN" but it will overwrite the existing assignment.

is there any way to do?

Thanks & Regards,

Arpit Shah

2 REPLIES 2

SuhaSaha
Advisor
Advisor
0 Kudos

Hello Arpit,

Step 1. Use the BAPI 'BAPI_USER_GET_DETAIL' to get the ACTIVITYGROUPS.

Step 2. You can then insert / update / delete records(as per your requirement) from the ACTIVITYGROUPS table & pass to BAPI_USER_ACTGROUPS_ASSIGN.

BR,

Suhas

0 Kudos

Hello Arpit

Already existing role assignments need to feeded into BAPI_USER_ACTGROUPS_ASSIGN because otherwise they are removed.

New ones need to be added (obviously).

To delete existing ones simply do not provided them as input.

Regards

Uwe