API call description
Before calling this API, make sure that:- The app is developed by a product solution provider. Get the AppId on the app details page of DingTalk Developer Backend > Third-party enterprise app.
- Before calling this API, you can call the Query the admin list API to get the admin IDs of the current organization.
Request
| Basic information | |
|---|---|
| HTTP URL | https://oapi.dingtalk.io/user/can_access_microapp |
| HTTP Method | GET |
| Supported app type | appType-Third-party enterprise app |
| Permission requirement | permission-qyapi_get_member-Read permission for user information |
Query parameters
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| access_token | String | Yes | 6d1bxxxx | The app credential for calling this API. Obtained through the API for getting the access_token of a third-party enterprise. |
| appId | Number | Yes | 2000121xxxx | The app ID. Get the AppID on the app details page of DingTalk Developer Backend > Third-party enterprise app. |
| userId | String | Yes | 2000121xxxx | The user ID of the admin to query. Call the Query the admin list API to get the value of the userid parameter. |
Request example
Response
Response body
| Name | Type | Example | Description |
|---|---|---|---|
| request_id | String | 4f9md9obopn2 | The request ID. |
| errcode | Number | 0 | The return code. |
| errmsg | String | system error | The description of the return code. |
| canAccess | Boolean | true | Whether the user has management permissions: - true: has management permissions. - false: does not have management permissions. |