Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Profile Role log

Former Member
0 Likes
742

Hi,

I want to find out when a particular profile was added to a role. I can see that a particular role exists for a profile from AGR_PROF table, but I want to know who did this and when? Is it possible to get this info from anywhere?

Thanks,

Saravanan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
700

Hi

Check the Tcodes SUIM, SU21 and PFCG

also check the tables

AGR_USERS

AGR_TCODES

AGR_1252

AGR_1250

USR10

USR12

Reward points for useful Answers

Regards

Anji

4 REPLIES 4
Read only

Former Member
0 Likes
701

Hi

Check the Tcodes SUIM, SU21 and PFCG

also check the tables

AGR_USERS

AGR_TCODES

AGR_1252

AGR_1250

USR10

USR12

Reward points for useful Answers

Regards

Anji

Read only

0 Likes
700

Anji,

That's great...Many Thanks.... I used SUIM and got the info!!

Thanks Again,

Saravanan

Read only

Former Member
0 Likes
700

Hi,

U can find this in T-code-RZ11.

Pls reward points.

Regards,

Ameet

Read only

Former Member
0 Likes
700

Hi,

For assigning roles you can use following bapi's :

first get all roles user currently has

CALL FUNCTION 'BAPI_USER_GET_DETAIL' destination destination

EXPORTING

username = uname

TABLES

activitygroups = ta_agr

RETURN = ta_bapiret.

then add the new role to ta_agr

append wa_agr to ta_agr.

Then assign all these roles to the user :

CALL FUNCTION 'BAPI_USER_ACTGROUPS_ASSIGN' destination destination

EXPORTING

username = uname

tables

activitygroups = ta_agr

return = ta_bapiret

For assigning profiles :

CALL FUNCTION 'BAPI_USER_PROFILES_ASSIGN'

EXPORTING

username = uname

TABLES

profiles = ta_profiles

return = ta_return.

I hope this is what you were looking for

<b>Reward points</b>

Regrads