Skip to main content
Blog
Home/

From the Trenches: Sending and receiving envelopes anonymously

Author Kamran Bhatti
Kamran BhattiSenior Developer Support Engineer
Summary3 min read

By combining JWT Grant authentication with embedded signing, you can configure your Docusign integrations to allow users to sign anonymously.

        • What is JWT ? 
        • Embedded signing
        • Additional resources

        Table of contents

        One of the common issues encountered by Developer Support is customers who want to send their envelopes anonymously, without having to send via an individual user’s account, and to have users be able to sign Docusign envelopes without having a Docusign account. 

        Typical reasons for using this model include: 

        • Staff turnover can make it awkward to deal with envelopes coming back to a user who no longer exists in the organization’s Docusign account. 

        • Requiring envelope recipients to sign up for a Docusign account can increase the perceived complexity of the process, causing recipients to abandon the transaction rather than sign and complete the process. This can reduce participation, adoption, and revenue.

        Docusign recommends a solution combining two techniques:

        • Use the JSON Web Token (JWT) Grant flow for authenticating API calls in your integration. This requires setting up a service account under which your integration will authenticate, making it possible to send all envelopes from the same account, to which you can delegate access.

        • Use embedded signing in your integration rather than remote signing; combined with the service account, this makes it possible for your users to sign without logging in to Docusign.

        What is JWT ? 

        To access the Docusign APIs, your integration must first authenticate itself to Docusign. Docusign uses OAuth 2.0 to secure your API requests. Among the OAuth flows Docusign supports is the JSON Web Token (JWT) Grant flow. JWT Grant is used to grant an access token to service integrations. As the term service integration suggests, a service account is used to make the API calls instead of individual users having to log in to their accounts. (Note: In order to create that service account, the user must have administrator permissions.) 

        How do I use it? Sending on behalf of users is enabled with the consent process. With this process, end users grant consent for an application to act on their behalf. This allows a service account to impersonate, or act on behalf of,  an individual user.

        JWT service account impersonation

        To create a service account, you will need to have an email address created for it (for example, docusign@mycompany.com), then create an administrator account for that email address.

        What this means is that when, for instance, a user requests to send an envelope in a remote signing flow, the email will be sent out from the originating user’s account, despite all of the API calls being made by the service account. 

        Embedded signing

        To create a seamless in-app signing experience, you need to combine using a service account with use of embedded signing. For the user experience, they will always see a single view. This will make the sender the same user that authenticated with JWT (the service account), and at the same time, allow for any user to sign without having to sign in.

        To see how to implement embedded signing, see Byungjae Chung’s post, Deep dive into the embedded signing recipient view.  When you combine both JWT (single user making all the API calls) with embedded signing (single user signing and completing documents), all of the envelopes will be created and managed by a single user. 

        Additional resources

        Author Kamran Bhatti
        Kamran BhattiSenior Developer Support Engineer

        Kamran Bhatti is a Senior Developer Support Engineer for Docusign. He has many years of tech industry experience in a wide range of roles, including as a software developer, support engineer, trainer, and business analyst. He is an award-winning speaker and a proud Canadian.

        More posts from this author

        Related posts

        • Docusign 2024 Release 3: Capture the Critical Business Value Hidden in Your Agreements
          Intelligent Agreement Management

          Docusign 2024 Release 3: Capture the Critical Business Value Hidden in Your Agreements

        • How to improve your app’s UX while users wait for API calls to complete

          How to improve your app’s UX while users wait for API calls to complete

          Author Larry Kluger
          Larry Kluger
        • Trending Topics: Latest from our forums (November 2024)
          Author Paige Rossi
          Paige Rossi
        How to improve your app’s UX while users wait for API calls to complete

        How to improve your app’s UX while users wait for API calls to complete

        Author Larry Kluger
        Larry Kluger
        Trending Topics: Latest from our forums (November 2024)
        Author Paige Rossi
        Paige Rossi

        Discover what's new with Docusign IAM or start with eSignature for free

        Explore Docusign IAMTry eSignature for Free
        Person smiling while presenting