07-20-2009 7:18 AM
Hi,
I need to perform a check within the ABAP code, to see if a User has a particular Role assigned to him.
For eg, How do I check if the user has the Role 'SAP_SM_DTM_ALL' assigned to him? There seem to checks for Authorization Objects, but none that can directly check for a Role.
Do help me out!
Thanks & Regards,
Shalini.
07-20-2009 7:22 AM
Hello
Try table AGR_USERS.
Enter user name and get all roles for user.
07-20-2009 7:22 AM
Hello
Try table AGR_USERS.
Enter user name and get all roles for user.
07-20-2009 7:24 AM
07-20-2009 7:27 AM
Use function module BAPI_USER_GET_DETAIL to retrieve any values which are displayed in SU01 transaction.
ACTIVITYGROUPS table parameter contains the roles which are assined to the user.
Regards,
Siva.
07-20-2009 7:32 AM
Hi
Check the Table:
AGR_USERS : Assignment of roles to users
Regards,
Sreeram
04-20-2010 1:00 PM
Hi everybody
I would just like to remind you that you should never check a specific role assignment but the authorization objects.
Thanks
Beat