2009 Oct 22 4:19 AM
Hi to all experts,
I need a fm to retrieve the roles assigned to user .
if a pass sy-uname as importing parameter i should to get all the roles assigned to that particular user
2009 Oct 22 4:32 AM
Hi, <li>Check the table AGR_USERS to get users assigned to a given role. Thanks Venkat.O
Hi to all experts,
I need a fm to retrieve the roles assigned to user .
if a pass sy-uname as importing parameter i should to get all the roles assigned to that particular user
2009 Oct 22 4:32 AM
Hi, <li>Check the table AGR_USERS to get users assigned to a given role. Thanks Venkat.O
2009 Oct 22 4:46 AM
Check [this discussion|http://sap.ittoolbox.com/groups/technical-functional/sap-security/sap-users-access-to-transactions-1933771]
2009 Oct 22 5:00 AM
Hi,
Try:
RSRA_USERS_OF_AGR_GET
or use table AGR_USERS to get users assigned to a given role
Thanks,
Krishna
2009 Oct 22 5:02 AM
Hi mohammed,
Below select query is used to get the roles assigned to the user.
SELECT agr_name FROM agr_users APPENDING TABLE lt_role_in
WHERE uname eq <uname>
AND from_dat <= sy-datum
AND to_dat >= sy-datum
AND exclude EQ space .
all the very best.
Sreenivasa sarma K.
2009 Oct 22 5:54 AM
2009 Oct 22 7:36 AM
hai,
please try this.
/VIRSA/RE_BAPI_CREATE_ROLE- Create Roles
/VIRSA/ROLE_ASSIGN_CUA_NH
/VIRSA/RE_BAPI_ROLE_TO_USERS
ASSIGN_USERS_HIERARCHY - User Assignment to Role - this is a Normal FM
try this bapis this may work
BAPI_USER_LOCK
- BAPI_USER_PROFILES_ASSIGN
- BAPI_USER_LOCPROFILES_ASSIGN
- BAPI_USER_LOCACTGROUPS_ASSIGN
- BAPI_USER_CHANGE
- BAPI_USER_UNLOCK
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |