Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Check for User Role


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,


Former Member
Former Member replied


Try table AGR_USERS.

Enter user name and get all roles for user.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question