Skip to content
Proud to collaborate with Microsoft for Startups

docusign.authorizations.get-principal-user-authorizations ​

Returns the user authorizations for which the user specified by userId is the principal user. To call this endpoint, you must be an account administrator or you must be the specified principal user.

Returns the authorizations for which the specified user is the principal user.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-docusign
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
base_urlstringYes—Docusign API root, e.g. https://<host>/api
api_tokenstringNo—Bearer token; omit to use the workflow's token env var
accountidstringYes—The external account number (int) or account ID GUID.
useridstringYes—The ID of the principal user.
active_onlystringNo—When true, return only active authorizations. The default value is true.
countstringNo—The maximum number of results to return.
email_substringstringNo—Filters returned user records by full email address or a substring of email address.
include_closed_usersstringNo—When true, returns active and scheduled authorizations of closed users. The default value is true. This value is only applied when active_only is false.
permissionsstringNo—Filters results by authorization permission. Valid values: * Send * Manage * Sign
start_positionstringNo—The position within the total result set from which to start returning values. The value thumbnail may be used to return the page image.
task_sourcestringNo——
task_typestringNo——
user_name_substringstringNo—Filters results based on a full or partial user name. Note: When you enter a partial user name, you do not use a wildcard character.

Output Schema ​

FieldTypeRequiredDefaultDescription
base_urlstringYes—Docusign API root, e.g. https://<host>/api
api_tokenstringNo—Bearer token; omit to use the workflow's token env var
accountidstringYes—The external account number (int) or account ID GUID.
useridstringYes—The ID of the principal user.
active_onlystringNo—When true, return only active authorizations. The default value is true.
countstringNo—The maximum number of results to return.
email_substringstringNo—Filters returned user records by full email address or a substring of email address.
include_closed_usersstringNo—When true, returns active and scheduled authorizations of closed users. The default value is true. This value is only applied when active_only is false.
permissionsstringNo—Filters results by authorization permission. Valid values: * Send * Manage * Sign
start_positionstringNo—The position within the total result set from which to start returning values. The value thumbnail may be used to return the page image.
task_sourcestringNo——
task_typestringNo——
user_name_substringstringNo—Filters results based on a full or partial user name. Note: When you enter a partial user name, you do not use a wildcard character.
status_codeintegerNo—HTTP status code of the completed call
responsejsonNo—Parsed JSON response body
failure_reasonstringNo——
failure_typestringNo——
failed_atstringNo——
failed_stepstringNo——
failed_layerstringNo——
failed_at_statestringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—executeWaiting to call GET /v2.1/accounts/{accountId}/users/{userId}/authorizations
completedNoYesYes—HTTP call succeeded
failedNoYesNo—HTTP call failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompletedPerform GET /v2.1/accounts/{accountId}/users/{userId}/authorizations
* (any state)failfailedRecord the failure reason

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "docusign.authorizations.get-principal-user-authorizations",
  "initial_data": {
    "base_url": "value",
    "accountid": "value",
    "userid": "value"
  }
}