I am creating envelopes and everything was working fine before I included the SendOnBehalfOf tag. I am receiving the error, "USER_LACKS_PERMISSIONS". I have checked my account permissions and the Send On Behalf Rights (API) is checked as well as the Account Wide Rights.
Here is the header created on the request:
POST https://demo.docusign.net/restapi/v2/accounts/49f49b40-fda4-4fbb-8db2-9326a7a1eb91/envelopes HTTP/1.1
Host: demo.docusign.net
X-DocuSign-Authentication: <DocuSignCredentials><SendOnBehalfOf>kelder@gennet.com</SendOnBehalfOf><Username>pserrate@gennet.com</Username><Password>*****</Password><IntegratorKey>FIRS-623bd271-aa91-40ca-9983-835c1586527b</IntegratorKey></DocuSignCredentials>
Content-Type: multipart/form-data; boundary=MY_BOUNDARY
Accept: application/json
Content-Length: 824511
Expect: 100-continue
Here is the response I get from DocuSign:
HTTP/1.1 401 Unauthorized
Cache-Control: no-cache
Content-Length: 126
Content-Type: application/json; charset=utf-8
Date: Tue, 03 Dec 2013 21:14:18 GMT
Strict-Transport-Security: max-age=7776000; includeSubDomains
{
"errorCode": "USER_LACKS_PERMISSIONS",
"message": "This user lacks sufficient permissions to access this resource."
}
Can you please let me know what I am missing or if this is a setting that needs to be updated/turned on on the DocuSign end?