Query Application-Side Permissions of Application Roles by Page
Permissions
The identity management API is authorized by application. Before calling the API, you need to set API permissions for different applications. For details, see API Permissions.
| Permission Code | Description |
|---|---|
| app_role_all | Read/Write permission for role management APIs |
| app_role_read | Read permission for role management APIs |
| all | Read/Write permission for all APIs |
| read | Read permission for all read APIs |
Request
Request Headers
| Parameter Name | Name | Required | Type | Description |
|---|---|---|---|---|
| Authorization | Authorization | Yes | String | Format: Bearer {access_token} |
| Content-Type | Content Type | Yes | String | Fixed value: application/json; charset=utf-8 |
Request Example
None
Request Parameters
| Parameter Name | Name | Required | Type | Description |
|---|---|---|---|---|
| application_id | Application ID | Yes | String | Target application ID |
| offset | Page Number | Yes | Int | Starting from page 0 |
| limit | Page Size | Yes | Int | Between 1 and 50 |
Response Example
Success Example
HTTP/1.1 200 OK
json
{
"number": 0,
"total": 2,
"size": 10,
"list": [
{
"roleId": "20230922093020557-4362-A6C9CF0EE",
},
{
"roleId": "20230921140018768-35A4-7DBD541BC",
"funcPerms": [
{
"id": "20230914153344573-EB4E-3CB09F9B6",
"remoteId": null
},
{
"id": "20230920113324284-EFDF-BE5B34E7D",
"remoteId": null
}
],
"dataPerms": [
{
"id": "20230914153344573-EB4E-3CB09F9B6",
"remoteId": null
},
{
"id": "20230920113324284-EFDF-BE5B34E7D",
"remoteId": null
}
]
}
]
}Error Example
HTTP/1.1 400 Bad Request
json
{
"error_code": " APP.0001",
"error_msg": "App does not exist"
}Response Parameters
| Parameter Name | Name | Type | Description |
|---|---|---|---|
| roleId | Application role ID | Object | |
| funcPerms | Function permission info collection | Object | In the collection, id: IDaaS primary key, remoteId: remote ID |
| dataPerms | Data permission info collection | Object | In the collection, id: IDaaS primary key, remoteId: remote ID |
Error Codes
| Status Code | Error Code | Chinese Error Message | English Error Message | Resolution |
|---|---|---|---|---|
| 400 | APP.0001 | 应用不存在 | App does not exist | Please check whether the application exists |