Thanks Vinita,
See what i did in my requirement .
1. Which contexts 1: n users are assigned to?
In my program first I get the user data from following BAPI.
CALL FUNCTION 'BAPI_USER_GET_DETAIL'
EXPORTING
username = ls_sel_user-bname
IMPORTING
ADDRESS = ls_ADDRESS
logondata = ls_logondata
islocked = ls_islocked
admindata = ls_admindata
TABLES
activitygroups = lt_activitygroups
return = lt_return.
In lt_activitygroups tables I got the role name for particular user .
table AGR_1250 gives me the Authorization Object but i want all the details i.e authorization is active or not .
Could you please suggest me any bapi or tables for the same .
Thanks and Regards,
Prakash