Skip to main content

Expected Results

Personal Authorization

Organization Authorization

Admin Authorization

Non-Admin Authorization

Version Requirements

The DingTalk Unified Authorization Suite SDK requires DingTalk version 6.3.35 or later. For earlier versions, prompt users to upgrade the client. Use the following method to check the DingTalk version.

1. Install the Authorization Suite SDK

  1. Run the following command to download and install the SDK (dingtalk-design-libs must be version 0.1.0 or later).
  2. After the download completes, import the SDK directly into your code.

2. Integrate App Authorization

Follow these steps to use the DingTalk Unified Authorization Suite to guide users through authorizing the relevant information.
  1. Import the DingTalk Unified Authorization Suite SDK.
  2. When user authorization is required, call openAuth directly. The request example is as follows:

Request Parameters

3. Response Information

The Response Example Is as Follows:

  • Authorization completed
  • Authorization declined
  • An authorization request was sent to the admin, awaiting authorization (occurs only in organization authorization scenarios)
  • Authorization error

Response Parameters

Error Codes

Parameter Errors

Permission Scope Errors

App Errors

Authorization Errors

Authorization Validity Period

Once a user explicitly grants authorization, the authorization relationship is recorded in the backend until the user actively cancels it.