This signature is not assigned to you for signing, Access Denied
Wednesday, September 25, 2019 at 12:43pmI have a Logic App that I am using to bulk sign documents in One Span using the Rest API.
I am following the guidelines from this link https://developer.esignlive.com/guides/feature-guides/bulk-sign-for-a-signer/
Everything works great if Person-A creates and signs the documents and is the only recipient.
But put Person-B as a recipient instead of Person-A and the signing fails.
Person-A won't ever sign their Transaction, Person-B will.
Here's what I have.
I get my authorization.
{
"packageId": "RPvtEsLjJlknB1TOfJ-GWUh1Ypo=",
"sessionFields": {
"Bulk Signing on behalf of": "[email protected]"
},
"signerId": "[email protected]",
"value": "NDVlMTU5YzgtYmMxOS00YjdlLThlMjEtNmI3M2RkMzMxODgx"
}
Then I use that authorization to get the session token.
https://sandbox.esignlive.com/auth?signerAuthenticationToken=NDVlMTU5YzgtYmMxOS00YjdlLThlMjEtNmI3M2RkMzMxODgx
Next I grab the Package so I have access to the Documents.
https://sandbox.esignlive.com/api/packages/RPvtEsLjJlknB1TOfJ-GWUh1Ypo=
Lastly I format the documents to be sent back and get the following 403 error.
{
"documents": [
{
"status": "",
"id": "default-consent",
...
see attached for Logic App image if the HTTP.
{
"code": 403,
"messageKey": "error.forbidden.signatureNotAssigned",
"message": "This signature is not assigned to you for signing.",
"name": "Access Denied"
}
Reply to: This signature is not assigned to you for signing, Access Denied
Wednesday, September 25, 2019 at 01:26pmGET /api/packages/{packageId}
response, that's where caused the issue. Because the "documents" nodes contain "approvals" for different signers. So the easiest solution is to loop through the documents array and remove the "approvals" node from each iteration. Or following a more elegant way, that to build such an array with document IDs only: Let me if this solves your issue. :) DuoReply to: This signature is not assigned to you for signing, Access Denied
Thursday, September 26, 2019 at 10:41am