Application Development 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: 

BAPI / RFC to Add or Remove Security Roles from a User

Former Member
0 Kudos

Hi All,

Does anyone know if there's a BAPI or RFC I can call to add / remove security roles from a user?

I found ISAI_USER_ROLES_MAINTAIN, but I don't think this is the right one (looks like it's for 4.6). We're running on ECC 6.0 with NetWeaver 2004s.

Thanks,

Matt

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Take a look in tcode BAPI under Basis... User Administration....

I think the name is something like BAPI_USER_AGR_ASSIGN and BAPI_USER_AGR_DELETE (or very similar).

Cheers,

Julius

2 REPLIES 2

Former Member
0 Kudos

Take a look in tcode BAPI under Basis... User Administration....

I think the name is something like BAPI_USER_AGR_ASSIGN and BAPI_USER_AGR_DELETE (or very similar).

Cheers,

Julius

0 Kudos

Yep! You were just about right. Looks like it's called BAPI_USER_ACTGROUPS_ASSIGN. According to the documentation, this BAPI "Changes User-Role Assignments." I believe this is what I'm looking for. Thanks for the quick reply, I really appreciate it! <unspeakable_word_removed_by_moderator>

Thanks again,

Matt

Edited by: Julius Bussche on Mar 22, 2008 10:05 PM