Skip to main content

List Role Module Permissions

Queries the module permission list of a specified role.

Request URL: /openapi/v1/role/module/list

Request Method: GET

Request Parameters

ParameterTypeRequiredDescriptionExample
roleIdStringYesRole ID. You can call List Roles to obtain it.2394

Request Example

{
"roleId": "2394"
}

Response Parameters

ParameterTypeDescriptionExample
successBooleanWhether the request is successful.true
requestIdStringRequest ID.Rp2h5BDD-GMMMtMFnJIHs0DMdJHg2FVL
dataArrayList of role module permissions, including action and access.{<br/> "action": "SQLTask",<br/> "access": true<br/>}

Module Permission Fields

ParameterTypeDescription
actionStringModule permission action identifier.
accessBooleanWhether the permission has been granted.

Successful Invocation Example

{
"success": true,
"requestId": "Rp2h5BDD-GMMMtMFnJIHs0DMdJHg2FVL",
"data": [
{
"action": "SQLEditor",
"access": false
},
{
"action": "SQLTask",
"access": true
},
{
"action": "Monitor",
"access": true
}
]
}