Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

REST Application Target Provisioning

Adi_1234
New Contributor
New Contributor

Hello Everyone.

I have a REST application. The thing is here the target application will only accept in XML format. The Accept type and content type I have given is application/xml. But I am not able to create/Provision the user in target application. I am sharing the CreateAccountjson and The XML body which I am passing in postman body to provision the user in target. Please correct me if my CreateAccountjson is incorrect. 

Thank you

Aditya

CreateAccountjson

 

{
"accountIdPath": "call1.message.data.id",
"call": [
{
"name": "call1",
"connection": "userAuth",
"showResponse": true,
"url": "URL",
"httpMethod": "POST",
"httpHeaders": {
"Authorization": "${connection.accessToken}",
"Accept": "*/*"
},
"httpParams": "{<SSOID>${user.username}</SSOID><FirstName>${user.customproperty35}</FirstName>}",
"httpContentType": "*/*",
"successResponses": {
"statusCode": [
201,
200,
204
]
}
}
]
}

 

postman body

<PersonRoot><SSOID>550002646</SSOID><SSODeactivate>FALSE</SSODeactivate><SSOInfo><FirstName>USER1234</FirstName><MiddleName></MiddleName><LastName>NAME1234</LastName><WorkerType>TRUE</WorkerType><GroupInfo><AddGroup /><RemoveGroup /></GroupInfo><DirectRoleAssignments><AddDirectRoles /><RemoveDirectRoles /></DirectRoleAssignments><RDORoleAssignments><AddRDORoles /><RemoveRDORoles /></RDORoleAssignments><ModifyAttribute /></SSOInfo></PersonRoot>
 
Accept and Contenttype in postman - */*
5 REPLIES 5

rushikeshvartak
All-Star
All-Star

{
"accountIdPath": "call1.message.data.id",
"call": [
{
"name": "call1",
"connection": "userAuth",
"showResponse": true,
"url": "URL",
"httpMethod": "POST",
"httpHeaders": {
"Authorization": "${connection.accessToken}",
"Accept": "application/xml",
"Content-Type": "application/xml"
},
"httpParams": "",
"httpContentType": "application/xml",
"successResponses": {
"statusCode": [
201,
200,
204
]
}
}
]
}


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi Rushikesh,

Can you please share me the sample http params format. Where I have to pass the attributes which will be mapped to the Saviynt attributes. Because I was not able to find how to pass XML format in json body. Thank you.

Regards

Aditya

Please share curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi Rushikesh

curl --location 'URL' \
--header 'Content-Type: */*' \
--header 'Authorization: Bearer 0005AWlIRDvuQ1wPNsRfM17eGVnI' \
--header 'Cookie: PF=IsMmQHqWR7VeBB3VN6ImQK' \
--data '<PersonRoot><SSOID>550002646</SSOID><SSODeactivate>FALSE</SSODeactivate><SSOInfo><FirstName>Lehsh1hhshshshsh</FirstName><MiddleName></MiddleName><LastName>Mu1hshhshshhshsh</LastName><WorkerType>TRUE</WorkerType><GroupInfo><AddGroup /><RemoveGroup /></GroupInfo><DirectRoleAssignments><AddDirectRoles /><RemoveDirectRoles /></DirectRoleAssignments><RDORoleAssignments><AddRDORoles /><RemoveRDORoles /></RDORoleAssignments><ModifyAttribute /></SSOInfo></PersonRoot>

'

Regards

Aditya 

 

{
"accountIdPath": "call1.message.data.id",
"call": [
{
"name": "call1",
"connection": "userAuth",
"showResponse": true,
"url": "URL",
"httpMethod": "POST",
"httpHeaders": {
"Authorization": "${access_token}",
"Content-Type": "application/xml"
},
"httpParams": "<PersonRoot><SSOID>${user.username}</SSOID><SSODeactivate>FALSE</SSODeactivate><SSOInfo><FirstName>Lehsh1hhshshshsh</FirstName><MiddleName></MiddleName><LastName>Mu1hshhshshhshsh</LastName><WorkerType>TRUE</WorkerType><GroupInfo><AddGroup /><RemoveGroup /></GroupInfo><DirectRoleAssignments><AddDirectRoles /><RemoveDirectRoles /></DirectRoleAssignments><RDORoleAssignments><AddRDORoles /><RemoveRDORoles /></RDORoleAssignments><ModifyAttribute /></SSOInfo></PersonRoot>",
"httpContentType": "application/xml",
"successResponses": {
"statusCode": [
201,
200,
204
]
}
}
]
}


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.