SAP Knowledge Base Article - Public

3673977 - Using SCIMV2Users to create an active user in CPQ System

Symptom

As an administrator, it is desired to create an active user using the SCIMV2Users API.

Environment

SAP SALES CLOUD CPQ

Resolution

  1. (Optional) Perform a GET https://{cpqurl}/api/scim/v2/Users/{uid} in order to understand the structure of the payload required by the SCIMV2Users API
  2. Fill the payload obtained above with the needed information
  3. Perform a POST https://{cpqurl}/api/scim/v2/Users
    • In case groups information is not sent, it will be created an inactive user, as it is a mandatory in CPQ to have a User Type.  
    • In order to only make 1 API call to have an active user, following must be passed: 
      •   "groups": [{
              "value": "{User Type SystemID}-USERTYPE"
            }],
  4. (Optional) In case group information was not sent in the first POST call, next step is to perform a PATCH https://{cpqurl}/api/scim/v2/Users/{userid} using the following payload, in order to turn user Active:
    • {
        "Operations": [
          {
            "op": "add",
            "path": "active",
            "value": true
          },
          {
            "op": "replace",
            "path": "groups",
            "value": [
              {
                "value": "{User Type SystemID}-USERTYPE"
              }
            ]
          }
        ]
      }

See Also

Keywords

SCIMV2, API, User Creation, Provisioning, CPQ , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , How To

Product

SAP CPQ 2024