Hi Yan,
I’m able to execute the POST request in Postman using curl and create the worker. In Sailpoint I did the same using curl and the request was successful, however when I validated in the target source the account was not created. This is what i’m using. Also I noticed that some attributes were not populated in the request so I had to add multiple Update Account Operation. Any ideas what could be going on. The use case is very simple, the idea is to create an a worker based on BusinessUnitName which is set as an entitlement.
curl --location ‘hcmRestApi/resources/11.13.18.05/workers’
–header ‘Content-Type: application/json’
–header ‘-H: REST-Framework-Version: 4’
–header ‘-H: Effective-Of:RangeStartDate=2024-03-27’
–header ‘-X: POST’
–header ‘Authorization: Basic
=’
–data-raw ‘{
“names”: [{
“LastName”: “$plan.LastName$”
“FirstName”: “$plan.FirstName$”,
“LegislationCode”: “$plan.LegislationCode$”
}],
“emails”: [{
“EmailType”: “$plan.EmailType$”,
“EmailAddress”: “$plan.EmailAddress$”
}],
“workRelationships”: [{
“LegalEmployerName”:“$plan.LegalEmployerName$”,
“WorkerType”: “$plan.WorkerType”,
“assignments”: [{
“ActionCode”: “$plan.ActionCode$”,
“BusinessUnitName”: “$plan.BusinessUnitName$”,
“UserPersonType”: “$plan.UserPersonType$”
}]
}]
}’