cancel
Showing results for 
Search instead for 
Did you mean: 

How to get all DAPs of a given user including inherited DAPs

SAPSupport
Employee
Employee
0 Kudos


We are facing some problems while executing the consolidation process that executes the standard program do_user_dao->get_user_profile_list. It is suposed to retrieve all the data access profiles assigned to the user, but it only gets the DAP directly assigned not the ones inherited from the teams.

How to get inherited DAPs from the teams ?


------------------------------------------------------------------------------------------------------------------------------------------------
Learn more about the SAP Support user and program here.

Accepted Solutions (1)

Accepted Solutions (1)

SAPSupport
Employee
Employee
0 Kudos

You can use the code sample below to get all DAP’s of a user including both directly assigned or inherited ones.

data: l_user_id type uj_user_id,
do_user_dao type ref to CL_UJE_USER_DAO.

l_user_id = "some user".

CREATE OBJECT do_user_dao
EXPORTING
I_APPSET_ID = "environment ID".

CALL METHOD do_user_dao->get_details2
EXPORTING
i_user_id = l_user_id
IMPORTING
et_mbr_profs = et_mbr_profs. "DAP list

Answers (0)