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 Connector - 'Add Access JSON' request body error

IAM_99
Regular Contributor II
Regular Contributor II

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

~~~~~~~~~~~~~~~~~~~~~~~~~~

IAM_99_0-1666200115023.png

 

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 ?

9 REPLIES 9

IAM_99
Regular Contributor II
Regular Contributor II

I am sure error is in the below line - 

"httpParams":"{\"users\": [{ \"userId\": \"${account.accountID}\",\"permissionProfileId\":\"13810890\"}]}",

@IAM_99,

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 ?

 

 

Regards,
Avinash Chhetri

IAM_99
Regular Contributor II
Regular Contributor II

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, 

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" ?

 

 

Regards,
Avinash Chhetri

IAM_99
Regular Contributor II
Regular Contributor II

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 .

  • What is wrong with that JSON code snippet ? 
  •  If its working in POSTMAN , why its saying invalid Body in Saviynt ? PUT is not accepting in Add Access JSON ?
  • any other way to achieve this , please let us know 

 

@IAM_99,

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.

 

avinashchhetri_0-1666219191467.png

 

 

 

Regards,
Avinash Chhetri

IAM_99
Regular Contributor II
Regular Contributor II

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.

IAM_99_0-1666228944775.png

 

 

 

 

tobinpc
Saviynt Employee
Saviynt Employee

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.

IAM_99
Regular Contributor II
Regular Contributor II

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
            ]
         }
      }
   ]
}