Show TOC

Creating a User AccountLocate this document in the navigation structure

User Self Service allows SAP Business Suite users to create a user account in the SAP system in two steps:

  1. Register the user name

  2. Activate the user

Once done, the user is created in the SAP Business Suite system and replicated to SAP Gateway Hub system.

By default the users created on the default SAP Business Suite system with IWBEP Add-on are replicated to a single SAP Gateway Hub system.

Note

User Self Service does not support Multiple Origin Composition (MOC). This means you can create users on SAP Business Suite system with IW_BEP Add-on followed by the replication of that user to SAP Gateway Hub system. However, you can use the BAdIs Implement User Management or Define Handler for User Management Notification to replicate users to multiple backend systems.

To implement the BAdIs, go to transaction SPRO, open the SAP Reference IMG and navigate to: Start of the navigation path SAP NetWeaver Next navigation step SAP Gateway Service Enablement Next navigation step Backend OData Channel Next navigation step User Self Service Setup End of the navigation path and choose the relevant BAdI. For more information on the BAdI, click the display icon.

Prerequisites

Make sure the following prerequisites are met:

Creating a User Account
  1. Registering the user name:

    /IWBEP/USERREQUESTMANAGEMENT OData service is used to register a user name. Execute a POST request on the entity UserRequestCollection.

    Note

    UserRequest entity in OData service UserRequestManagement is enhanced with a new property Password. With this you have the option to use the Password property while registering a user name. If you are providing the password while registering the user name, there is no need to provide a password while activating the user and vice versa.

    Sample request body for registering the user name with password.

    <entry xml:base="http://<host>:<port>/sap/opu/odata/IWBEP/USERREQUESTMANAGEMENT/" 
    xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" 
    xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
    <updated>2012-10-08T03:25:45Z</updated>
    <category term="USERREQUESTMANAGEMENT.UserRequest" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
    <content type="application/xml">
    <m:properties>
    <d:UserName>B2CUSER1</d:UserName>
    <d:FirstName>UsersFirstName</d:FirstName>
    <d:LastName>UsersLastName</d:LastName>
    <d:EmailAddress>UsersEmailID@xyz.com</d:EmailAddress>
    <d:PhoneNumber>123456789</d:PhoneNumber>
    <d:UserCategory>001</d:UserCategory>
    <d:Password>something</d:Password>
    <m:properties>
    </content>
    </entry> 

    A notification email with the activation link is sent to the user.

    Note

    Use the same UserCategory maintained in the Maintain User Category IMG activity. See User Self Service IMG Activities.

  2. Activating the user:

    /IWBEP/USERREQUESTMANAGEMENT OData service is used to activate a user. Execute a PUT request on the entity UserRequestActivationRequestCollection with RequestID as the key and leave the password property blank if it is already provided during registering the user name (step 1).

    Sample request body for activating the user without password.

    <entry xml:base="http://<host>:<port>/sap/opu/odata/IWBEP/USERREQUESTMANAGEMENT/" 
    xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" 
    xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
    <category term="USERREQUESTMANAGEMENT.UserRequestActivationRequest" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
    <content type="application/xml">
    <m:properties>
    <d:RequestID>005056A502F61EE2B2BA14382200DD3F</d:RequestID>
    <d:ActivationKey>3085E67D1FA645C765CDGG899991CEBC28A9B549</d:ActivationKey>
    <m:properties>
    </content>
    </entry>