cancel
Showing results for 
Search instead for 
Did you mean: 

How to get user list by profile/rolename

vahagn1
Participant
0 Kudos

Hello,

Does anybody can help me, what function can I use by `/sap/bc/soap/rfc` functionality to get the users list with specific profiles like `SAP_ALL`/`S_DEVELOP` or with roles like `SAP_CEI_AUDIENCES`?

I can get by RFC roles/profiles by username, but not the opposite.

Thank you

View Entire Topic
jmodaal
Active Contributor
0 Kudos

Hello,

I don't know specific function modules for directly getting users assigned to profiles and/or roles.
You could use function module RFC_READ_TABLE for reading table UST04 (parameter OPTIONS: PROFILE = '(profile name)' (for example)) resp. table AGR_USERS (OPTIONS: AGR_NAME = '(role name'). The records will be supplied in the lines of the DATA tab.

Consider that function module RFC_READ_TABLE like many others is not released for use by customer.

Kind regards

Jan