Integrating CIAM for B2B with Sample Website

Objective

After completing this lesson, you will be able to embed organization registration screen using the SAP Customer Data Cloud WebSDK.

SAP Customer Data Cloud B2B Screen-set Via WebSDK Function: gigya.accounts.ShowScreenSet()

​The SAP Customer Data Cloud B2B Module has a B2B specific screen-set available out-of-the-box: ‘Default-OrganizationRegistration’. It consists of the following screens:

Organization Registration
Enables prospective B2B Organizations to send an onboarding request.
Request Received
Confirmation message following submission an Organization Registration request.
Change Organization Context
Used after Authentication and enables organization members assigned to multiple B2B Organizations to set the B2B context (i.e. which B2B Organization they want their current session to be restricted to). Once set, all interaction with SAP Customer Data Cloud B2B WebSDK methods will target the selected B2B Organization. This screen has the same purpose as the accounts.b2b.setOrganizationContext JS WebSDK method.

B2B Screen-Sets can be displayed in a web page using the accounts.showScreenSet JSWebSDK function, as demonstrated on the following diagrams:

This diagram shows the out-of-the-box SAP Customer Data Cloud B2B screen ‘Organization Registration’, followed by screen ‘Request Received’ which appears after the User clicks Submit.
This diagram shows the out-of-the-box SAP Customer Data Cloud B2B screen ‘Login’, followed by screen ‘Change Organization Context’.

Launching the Delegated Admin Console

​Access to the SAP Customer Data Cloud Delegated Admin Console is linked to a predefined policy: ‘Delegated Admin’. Organization members who are assigned to this policy will be able to access the Delegated Admin Console via the accounts.b2b.openDelegatedAdminLogin JS WebSDK function. ​

This method opens the Delegated Admin Console and logs in the organization member if they currently have a valid SAP Customer Data Cloud session on the website.

​As the Delegated Admin Console needs to affect a specific B2B Organization, the ‘orgId’ needs to be set as a parameter when calling the above WebSDK function, as shown in the following diagram:

This diagram shows how the WebSDK function ‘openDelegatedAdmin’ is called from a website to launch the SAP Customer Data Cloud Delegated Admin Console.

Accessing the Delegated Admin Console

Let’s see how to access the Delegated Admin Console from a webpage:

Log in to track your progress & complete quizzes