and more in a single search tool across platforms. Read the announcement here. |
03/25/2024 05:21 AM - edited 03/25/2024 05:21 AM
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
03/25/2024 09:30 PM
{
"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
]
}
}
]
}
03/26/2024 02:29 AM
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
03/26/2024 09:40 PM
Please share curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]
03/26/2024 11:16 PM
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
03/27/2024 09:13 PM
{
"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
]
}
}
]
}