and more in a single search tool across platforms. Read the announcement here. |
10/19/2022 10:24 AM - edited 10/19/2022 10:25 AM
Hi Team,
We have rest connector ,trying to add below contents to Add task JSON its giving errror while Task invoked.
POSTMAN - body code snippet
~~~~~~~~~~~~~~~~~~~~~~~~~~
Add Access JSON - works in JSONlint with out any formatting error
~~~~~~~~~~~~~~~~~~~
{
"call":[
{
"name":"Group",
"connection":"userAuth",
"url":"https://XXXXXXXXXXXX/restapi/v2.1/accounts/333ff776-e6ea-4fbd-a478-6bea2e70c068/users",
"httpMethod":"PUT",
"httpParams":"{\"users\": [{ \"userId\": \"${account.accountID}\",\"permissionProfileId\":\"13810890\"}]}",
"httpHeaders":{
"Authorization":"${access_token}",
"Content-Type":"application/json"
},
"successResponses":{
"statusCode":[
200
]
}
}
]
}
Provisioning Comments Error
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{"errorCode":"INVALID_REQUEST_BODY","message":"The request body is missing or improperly formatted. Error parsing undefined value. Path '', line 0, position 0."},"statusCode":400,"description":null,"status":"Failed"}}
Can you let me know , what is wrong here ?
Solved! Go to Solution.
10/19/2022 10:26 AM
I am sure error is in the below line -
"httpParams":"{\"users\": [{ \"userId\": \"${account.accountID}\",\"permissionProfileId\":\"13810890\"}]}",
10/19/2022 10:40 AM
Well it seems like the payload in invalid. There is no syntax related issue as far as I can see.
How does you application expect the input httpparams for this PUT request ?
10/19/2022 12:16 PM
hi , sorry i didnt understand your question,
Are you saying I can't use 'PUT' in Add Access JSON ? as it was working in POSTMAN i was expecting same should work,
10/19/2022 02:18 PM - edited 10/19/2022 02:22 PM
No, Im not saying that. There error is coming from your applciation stating that the request you are sending is invalid. All Im asking is "what is your application expecting" ?
10/19/2022 03:12 PM - edited 10/19/2022 03:16 PM
application will show an entitlement - when we request that ,user should be assigned with that -entitlement - its common use case. the request which is working in PSOTMAN should work in Saviynt 'Add Access JSON'. is the requirment.
This is REST (docusign) application , unable to find straight forward api for assigning an entitlement ( there is not much entitlements only 2 available in docusign) to a user.
so We are exploring from api documentation and trying in POSTMAN to achieve this in Saviynt.
So , my questions on this are .
10/19/2022 03:43 PM
Saviynt has a verified Docusign documentation, have you checked that ?
Please go to https://saviynt.com/integrations/ and search for Docusign and click on the tile to get to the documentations.
10/19/2022 06:23 PM - edited 10/19/2022 06:24 PM
Hi Avinash , yeah , Fresh Desk has some documentation on docusign but it was not working ( add access task it self was not getting triggered , those configurations were not working in POSTMAN).
the URL you mentioned am not able to search , not sure whats wrong from my end, when we hit search it goes for few seconds and below appears with out showing results of docusign.
10/20/2022 07:25 AM
Hi IAM_99 ,
This is a known intermittent issue , please bear with us as we are working on fixing this issue so kindly refresh your web page and try searching the documents. This is a one place platform for all our Saviynt integration exchange. There are alternative API calls for add access use case for docusign. Thank you for your valuable feedback.
10/19/2022 08:56 PM
FYI ... The below (bold ) fixed the issue.
{
"call":[
{
"name":"Group",
"connection":"userAuth",
"url":"https://XXXXXXXXXXXX/restapi/v2.1/accounts/333ff776-e6ea-4fbd-a478-6bea2e70c068/users",
"httpMethod":"PUT",
"httpContenttype": "application/json"
"httpParams":"{\"users\": [{ \"userId\": \"${account.accountID}\",\"permissionProfileId\":\"13810890\"}]}",
"httpHeaders":{
"Authorization":"${access_token}",
"Content-Type":"application/json"
},
"successResponses":{
"statusCode":[
200
]
}
}
]
}