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 ?
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
I_APPSET_ID = "environment ID".
CALL METHOD do_user_dao->get_details2
i_user_id = l_user_id
et_mbr_profs = et_mbr_profs. "DAP list