Announcing the SAVIYNT KNOWLEDGE EXCHANGE unifying the Saviynt forums, documentation, training, and more in a single search tool across platforms. Click HERE to read the Announcement.

Error While Account Provisioning to Docusign

KK
Regular Contributor
Regular Contributor

Hi Team.

I am trying to provision account to Docusign.

I configured connection for Docusign regarding to below article.

https://docs.saviyntcloud.com/bundle/Docusign-Guide/page/Content/Understanding-Integration-between-E...

Account/Entitlement import is success, but, account provisioning is failed.

Below is CreateAccountJSON.

{
"accountIdPath": "call1.message.newUsers[0].userId",
"responseColsToPropsMap": {
"customproperty1": "call1.message.newUsers.email~#~char"
},
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://demo.docusign.net/restapi/v2/accounts/8dd170d9-2048-41c7-a542-4ec128c82ed5/users",
"httpMethod": "POST",
"httpParams": "{\"newUsers\": [{\"userName\": \"${user.firstname}\",\"email\": \"${user.email}\"}]}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201
]
}
}
]
}

 

Error is below.

2023-06-06T10:12:58+09:00-ecm-worker-{"log":"2023-06-06 01:12:57,402 [quartzScheduler_Worker-5] DEBUG rest.RestProvisioningService - response: [auditDetails:[call1:[[headers:null, message:, statusCode:null, description:null, status:Failed], [headers:null, message:, statusCode:null, description:null, status:Failed], [headers:null, message:, statusCode:null, description:null, status:Failed], [headers:null, message:, statusCode:null, description:null, status:Failed]]], call1:[headers:null, message:, statusCode:null, description:null, status:Failed]]\n","stream":"stdout","time":"2023-06-06T01:12:57.40287913Z"}

 

I tried to post the same request by Postman, and the request is success. But, this is failed with Saviynt.

Do you know any possible reasons?

Best Regards,

3 REPLIES 3

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @KK,

Could you please validate the HTTP Param and the API URL?

It appears that there may be an issue with the "unsuccessResponses" value. If possible, could you provide the unsuccessresponse code as you provided for the successreponse?
Have you tried passing the json without any unsuccessResponses code it would be helpful to capture the logs for further investigation.

For Sample :

Create Account Json

{
"accountIdPath": "call1.message.id",
"responseColsToPropsMap": {
"customproperty1": "call1.message.email~#~char"
},
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "APIurl/id/users",
"httpMethod": "POST",
"httpParams": "{\"user_name\": \"${user.displayname!=null?user.displayname:''}\",\"first_name\": \"${user.preferedFirstName!=null?user.preferedFirstName:''}\",\"last_name\": \"${user.lastname!=null?user.lastname:''}\",\"email\": \"${user.email!=null?user.email:''}\",\"auto_activate_memberships\":true,\"accounts\":[{\"id\":\"d2e2bbbc-a537-4918-8cee-803d8c0a993f\",\"permission_profile\": {\"id\":\"752553\"}}]}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201
]
},
"unsuccessResponses": {
"odata~dot#error.code": [
"",
"internal_server_error"
]
}
}
]
}

Thanks,

If you find the above response useful, Kindly Mark it as "Accept As Solution".

KK
Regular Contributor
Regular Contributor

Hi @sudeshjaiswal 
Thanks for your answer.

It seems that Access Token was expired.
I refresh Access Token and the issue is solved.

Anyway, thanks for your corresponding.

Best Regards,

Manu269
All-Star
All-Star

As a best practice make sure  Connection JSON Validation.

Developers Handbook (saviyntcloud.com)

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.