Click HERE to see how Saviynt Intelligence is transforming the industry. |
03/01/2024 11:24 AM - edited 03/01/2024 11:33 AM
Below is the update user JSON: We are using REST API to update the user in INFOR Cloud
{
"actions": {
"Update Login": {
"call": [
{
"name": "Update Login",
"callOrder": 0,
"connection": "userAuth",
"url": "https://mingle-XXXXXXXXXXXXXX/IONSERVICES/api/ion/messaging/service/v2/message",
"httpMethod": "POST",
"httpParams": {
"documentName": "Process.IAMProvisioning",
"messageId": "37036",
"fromLogicalId": "lid://infor.ims.saviynt_webhook",
"toLogicalId": "lid://default",
"document": {
"value": "{\"IAMProvisioning\":{\"_user\":[{\"HROrganization\":\"1\",\"Employee\":\"364965\",\"Action\":\"Update\",\"PrmEmail\":\"364965@pfjstores.local\",\"PrmDomain\":\"364965@pfjstores.local\",\"PrmAccountName\":\"364965\",\"PrmTelephone\":\"\",\"IsDomainChange\":\"NO\"}]}}",
"encoding": "None",
"characterSet": "UTF-8"
},
"additionalProperties": {
"accountingEntity": "1",
"location": "nlregtest3",
"documentId": "37036",
"variationId": "1",
"revisionId": "6784",
"batchId": "infor.SSJE:1",
"batchSequence": "2",
"batchSize": "1",
"batchRevision": "1",
"batchAbortIndicator": "true",
"instances": "1",
"source": "DB Connector",
"custom_property": "value"
}
},
"httpHeaders": {
"x-http-method": "MERGE",
"Accept": "application/json",
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201
]
}
}
]
}
}
}
Postman Response:
Solved! Go to Solution.
03/02/2024 01:05 PM
Please share curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]
03/04/2024 08:04 AM
curl --location --max-time 1000 'https://mingle-XXXXXXXXXXXXXX/IONSERVICES/api/ion/messaging/service/v2/message' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer zBPfS2-2JEd5GpLOhZQmW0WcOJJ86TlNmy0JhW7NKstUTHJLQbA_GfGEYV0x2q-RfAuGVg8IyHsSGeWHTgg' \
--header 'Cookie: INFORTAM=uV-8ocYvfwm5jGfq56k_-JRZeZvh.tam-ws-207-75ec; useractivity_cookie_mingle=1709319914' \
--data-raw '{
"documentName": "Process.IAMProvisioning",
"messageId": "37036",
"fromLogicalId": "lid://infor.ims.saviynt_webhook",
"toLogicalId": "lid://default",
"document": {
"value": "{\"IAMProvisioning\":{\"_user\":[{\"HROrganization\":\"1\",\"Employee\":\"364965\",\"Action\":\"Update\",\"PrmEmail\":\"364965@pfjstores.local\",\"PrmDomain\":\"364965@pfjstores.local\",\"PrmAccountName\":\"364965\",\"PrmTelephone\":\"\",\"IsDomainChange\":\"NO\"}]}}",
"encoding": "None",
"characterSet": "UTF-8"
},
"additionalProperties": {
"accountingEntity": "1",
"location": "nlregtest3",
"documentId": "37036",
"variationId": "1",
"revisionId": "6784",
"batchId": "infor.SSJE:1",
"batchSequence": "2",
"batchSize": "1",
"batchRevision": "1",
"batchAbortIndicator": "true",
"instances": "1",
"source": "DB Connector",
"custom_property": "value"
}
}'
@rushikeshvartak As requested please find the CURL.
03/10/2024 10:59 PM
{
"actions": {
"Update Login": {
"call": [
{
"name": "Update Login",
"callOrder": 0,
"connection": "userAuth",
"url": "https://mingle-XXXXXXXXXXXXXX/IONSERVICES/api/ion/messaging/service/v2/message",
"httpMethod": "POST",
"httpParams": "{\"documentName\":\"Process.IAMProvisioning\",\"messageId\":\"37036\",\"fromLogicalId\":\"lid://infor.ims.saviynt_webhook\",\"toLogicalId\":\"lid://default\",\"document\":{\"value\":\"{\\\"IAMProvisioning\\\":{\\\"_user\\\":[{\\\"HROrganization\\\":\\\"1\\\",\\\"Employee\\\":\\\"364965\\\",\\\"Action\\\":\\\"Update\\\",\\\"PrmEmail\\\":\\\"364965@pfjstores.local\\\",\\\"PrmDomain\\\":\\\"364965@pfjstores.local\\\",\\\"PrmAccountName\\\":\\\"364965\\\",\\\"PrmTelephone\\\":\\\"\\\",\\\"IsDomainChange\\\":\\\"NO\\\"}]}}\",\"encoding\":\"None\",\"characterSet\":\"UTF-8\"},\"additionalProperties\":{\"accountingEntity\":\"1\",\"location\":\"nlregtest3\",\"documentId\":\"37036\",\"variationId\":\"1\",\"revisionId\":\"6784\",\"batchId\":\"infor.SSJE:1\",\"batchSequence\":\"2\",\"batchSize\":\"1\",\"batchRevision\":\"1\",\"batchAbortIndicator\":\"true\",\"instances\":\"1\",\"source\":\"DB Connector\",\"custom_property\":\"value\"}}",
"httpHeaders": {
"x-http-method": "MERGE",
"Accept": "application/json",
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201
]
}
}
]
}
}
}
We need to escape the single (\) with (\\\) slash.
We need to escape (") with (\) slash.