DocuSign REST API GET Envelope Form Data Error: This user lacks sufficient permissions to access this resource

Issue

When calling DocuSign REST API's Envelope Form Data endpoint, an error is received.

GET /v2.1/accounts/{accountId}/envelopes/{envelopeId}/form_data

{
  "errorCode": "USER_LACKS_PERMISSIONS",
  "message": "This user lacks sufficient permissions to access this resource."
}

Cause

While the error leads to a user permissions conflict with the authenticating user or sender, it's actually due to a disabled account setting, Allow sender to download form data

Resolution

As an account administrator, log into your account, navigate to Go to Admin > Sending Settings and enable the setting, Allow sender to download form data.

NOTE: Keep in mind that enabling this setting will also allow any user on the account with "send envelope" permissions or above to view and download form data from the web app. 

Resources