For the complete documentation index, see llms.txt. This page is also available as Markdown.

Docusign Integration Setup

Getting Started

Use this guide to connect Docusign to your BalkanID tenant. You will need administrator access to your Docusign account and access to the Integrations section in BalkanID.

BalkanID authenticates to Docusign using JWT Grant, acting on behalf of a single Docusign user that you nominate. BalkanID recommends nominating a dedicated service account for this integration rather than a personal or employee-named account, so that the connection survives staff changes.

Once connected, BalkanID syncs your Docusign users, permission profiles, groups, folders and templates, along with the access between them.

Requirements:

Before you begin, collect the following values from Docusign:

  • Integration Key

  • Impersonated User ID

  • RSA Private Key

  • Authentication Server

  • Account ID — only needed if the nominated user belongs to more than one Docusign account

Configure Docusign within your BalkanID tenant

Docusign requires all applications to be created in a demo or sandbox environment first; you cannot create an app directly in production. If you do not plan to test the integration in the demo environment, you can complete initial setup steps 1 and 2 below, then immediately skip to step 10 to promote your app to production.

  1. Log in to your Docusign demo environment at account-d.docusign.com using an administrator account and navigate to Admin > Apps and Keys.

  2. Under the My Apps / Integration Keys section, select Add App and Integration Key, provide a recognizable name for your application, and create it.

  3. In the Additional Settings section, generate an RSA key pair. Copy the private key and store it securely immediately. Docusign will only display this key once; if you close the dialog before saving it, you will need to generate a new one.

  4. On the same settings page, select Add URI. Docusign will not grant administrative consent without a registered redirect URI. However, BalkanID does not receive or use this redirect, so you can enter a placeholder value such as https://localhost.

  5. Return to the main Apps and Keys page and copy the User ID of the account you want BalkanID to act as (this is your Impersonated User ID). If you need to nominate a different user, go to Settings > Users, open that user's profile, and copy their User ID instead.

  6. Construct the consent URL by copying the following link and replacing <YOUR_INTEGRATION_KEY> and <YOUR_REDIRECT_URI> with the exact values from your application. Save this constructed URL. You will need to update and reuse it when setting up the production environment.

  1. Open your customized URL in a web browser. Sign in as the nominated impersonated user, then select Accept.

  2. After you click Accept, your browser will attempt to load the placeholder redirect URI and display an error indicating the page cannot be loaded. This is expected behavior. You can safely close the tab, as Docusign has successfully stored the one-time consent.

  3. To test the integration in the dev environment before promoting to production, proceed to step 13.

  4. Promote your application from the demo environment to production. Promoting creates a brand-new app entry and does not carry over the RSA key pair or the redirect URI from the demo environment.

  5. Once the app is live in production, open its settings. You must add the redirect URI again and generate a new RSA key pair. The demo private key will not work with the production integration key, so ensure you update the docusign-private-key in your BalkanID configuration.

  6. Grant production consent by repeating the consent URL step for the production app. Ensure you use the production integration key, the production redirect URI, and the production Docusign endpoint (account.docusign.com instead of account-d.docusign.com) in the URL.

  7. In BalkanID, head to Integrations > Add integration.

The BalkanID Integrations page, with the Add integration button at the top right of the Connected Applications tab
Integrations page
  1. Search for Docusign, select it, and click Next.

  2. Set up the Primary application owner (mandatory) and the Description, if any. Set up Secondary application owner(s), if any.

  3. Under Select Extraction Type, choose Direct Configuration and enter the values you collected. Leave Authentication Server set to account.docusign.com unless your account is in the Docusign developer environment, in which case use account-d.docusign.com. Leave Account ID empty unless the nominated user belongs to more than one Docusign account.

The Direct Configuration fields for Docusign: Integration Key, Impersonated User ID, RSA Private Key, Authentication Server and Account ID
Direct Configuration
  1. Click Next to move onto Optional Configuration.

  2. Fill Optional Configuration, if required.

The Optional Configuration step, showing Reviewer Settings on the left and Select Fulfillment options on the right
Optional Configuration
  1. Once you have filled in the information, click Save. Your integration is now configured and you will see the status of the integration displayed alongside other integrations on the Integrations page. When data is available, the integration Status column will read Connected and the integration Message will read Data available.

Integration Scopes

Read Only Scopes
Lifecycle Management Scopes

user_read — read access to users

N/A

group_read — read access to groups

N/A

permission_read — read access to permission profiles

N/A

account_read — read access to account information

N/A

signature and impersonation — required by Docusign to issue an access token on behalf of the nominated user. BalkanID does not create, send or sign envelopes.

N/A

Last updated

Was this helpful?