"errorCode": "USER_DOES_NOT_BELONG_TO_SPECIFIED_ACCOUNT"

Viewed 1978

While Requesting the recipient view in docusign, I am getting the error as

 "errorCode": "USER_DOES_NOT_BELONG_TO_SPECIFIED_ACCOUNT",
  "message": "The specified User is not a member of the specified Account."

Below is the URL that I am referring:

https://developers.docusign.com/esign-rest-api/guides/embedded-signing

I have added the users in specified account and also given the input to fetch the response. But anyhow getting the above error.

curl -k -X POST  \
    -H "Accept: application/json" \
    -H "Content-Type: application/json" \
    -H 'X-DocuSign-Authentication: { 
          "Username":"developer@example.com",
          "Password":"S3cre+p455w0Rd",
          "IntegratorKey":"230546a7-9c55-40ad-8fbf-af205d5494ad"}' \
    -d '{"authenticationMethod":"email",
         "clientUserId":"1000",
         "email":"the_nda_signer@mailinator.com",
         "recipientId":"1",
         "returnUrl":"http://httpbin.org/get",
         "userName":"Darlene Petersen"}' \
    https://demo.docusign.net/restapi/v2/accounts/000000/envelopes/4280f274-bfee-419b-9514-b218b7eeda08/views/recipient 
2 Answers

Docusign does not allow cross-account API calls.

What does that mean?

Typical product integrations try to do integration with docusign by using their own Docusign Account (Pro Enterprise) but they want to allow their customers to send documents for eSign using their own docusign accounts. B2B type integrations. This is where the tricky part is.

  1. The integration is done with one account.
  2. The documents are sent for eSign for another account user (of the product client) by using integration account id (Point 1).

In such case belows errors are thrown by docusign APIs,

For JWT flow,

"errorCode": "USER_DOES_NOT_BELONG_TO_SPECIFIED_ACCOUNT",
"message": "The specified User is not a member of the specified Account."

For Auth Grant flow,

"errorCode": "INVALID_USER",
"message": "The specified User is not a member of the specified Account."

Solution?

When the documents are send for eSing using docusign createEnvelope API, use docusign account id of the product client instead of integration account id.

i.e.

  1. The integration is done with one account (Product account).
  2. The documents are sent for eSign for another account user but the account id is of this users docusign account only.

Users who want to send documents need a DocuSign account.

It sounds like your username/ password changed and still it is pointing to the previous account. To resolve you need to update the integration to point to the new account.

Here you can find the status code

Related