Hudson

This signature is not assigned to you for signing, Access Denied

0 votes
I 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" }

Approved Answer

Reply to: This signature is not assigned to you for signing, Access Denied

0 votes
Hi Hudson, It looks like in your last step, you copied the whole "documents" node from GET /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:
{
  "documents": [
    {
      "id": "default-consent"
    },
    {
      "id": "6489338764d20465"
    }
  ]
}
Let me if this solves your issue. :) Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: This signature is not assigned to you for signing, Access Denied

0 votes
That was it. I added a Select step to pull out just the Ids from the documents array. Thanks for the quick reply.

Attachments

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off