Add request id in SCIM 2.0 connector payload

Which IIQ version are you inquiring about?

8.4p2

Please share any images or screenshots, if relevant.

[Please insert images here, otherwise delete this section]

Please share any other relevant files that may be required (for example, logs).

[Please insert files here, otherwise delete this section]

Share all details about your problem, including any error messages you may have received.

Hello everyone
We want to add request id in payload of SCIM 2.0 connector. How can we do this. can anyone help please.

Thanks

@pradeep_kumar54 Have you tried adding it using ProvisioningPolicy?

By Request ID you mean the Identity Request ID created by SailPoint. If Yes you can do so by updating the the plan after Identity Request Initialize step when you would have Identity Request object created and you should have the identityRequestId available in the workflow.
Alternatively you can also use Before Provisioning Rule to update the plan to add the attribute with Request ID. The following is a sample from Before Provisioning Rule which adds request id for Create Operations to descriptions attribute on application.

Once you have the request id in plan you can refer it in SCIM payload using plan variable


      List  requests = plan.getAccountRequests();
      if(!Util.isEmpty(requests))
      {
        for(AccountRequest request : requests)
        {
          if(request != null)
          {

            if(request.getOperation().equals(ProvisioningPlan.AccountRequest.Operation.Create))
            {
              List attributeRequests = request.getAttributeRequests();

              if(!Util.isEmpty(attributeRequests))
              {
                Map reqArguments= plan.getArguments();

                if(!Util.isEmpty(reqArguments) && reqArguments.get("identityRequestId")!=null){
                  request.add(new AttributeRequest("description", Operation.Set,"SailPoint RequestID: "+reqArguments.get("identityRequestId")));
				  }
              }
            }

          }
        }
      }