Skip to Content
author's profile photo Former Member
Former Member

BAPI to create,get Profiles and roles


I am using the SAP RFC SDK to do the provisioning of entities in the SAP environment.

My SAP system is 6.20 .

I wanted to know if there are BAPI's which exist for the following

a)Profile creation

b)Profile Fetching

c)Role creation

d)Role Fetching

I could not find the same in the SAP IDM document provided for IAM vendors

Best Regards


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Nov 20, 2007 at 11:52 AM

    Hi Manoj,

    Everything you need to know about this, and more, can be found in the following PDF from SAP: SAP" target="_blank">">SAP Identity Management APIs.

    In summary:

    To find a user's roles and profiles, use <b>BAPI_USER_GET_DETAIL</b>.

    To assign & delete a user's roles, use <b>BAPI_USER_ACTGROUPS_ASSIGN</b> and <b>BAPI_USER_ACTGROUPS_DELETE</b>.

    To assign and delete a user's profiles, use <b>BAPI_USER_PROFILES_ASSIGN</b> and <b>BAPI_USER_PROFILES_DELETE</b>.

    Hope this helps,


    My" target="_blank">">My blog

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Manoj,

      sorry for not having better news:

      SAP does not offer a remotly callable API to create, change or delete roles (aka activity groups) or profiles.

      You may have a look to the RFC functions of package S_PROFGEN, however, these RFC functions will not solve your request - and the usage is not supported.

      Kind Regards

      Frank Buchholz

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.