Last Updated on : 2023-07-06 09:14:27download
Query all permissions of a single user based on the user ID.
GET: /v1.0/iot-02/users/{uid}/permissions
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
uid | String | uri | true | The user ID. |
Parameter name | Type | Description |
---|---|---|
result | List | The returned result of the specified user's permissions. |
Description of result
Parameter name | Type | Description |
---|---|---|
permission_name | String | The name of a specified permission. |
order | Integer | The order that the items are displayed. |
remark | String | The remarks. |
permission_type | Integer | The type of permission. Valid values:
|
permission_code | String | The identifier of a permission. |
parent_code | String | The identifier of a parent permission. |
GET: /v1.0/iot-02/users/bsh1645068029415****/permissions
{
"tid": "51cdceb0948811ec82481264f1be8bd1",
"result": [
{
"remark": "",
"permission_code": "SA_RESALE",
"permission_name": "Retail product",
"permission_type": 0,
"order": 3
},
{
"remark": "",
"permission_code": "SA_SALES_CENTER",
"permission_name": "Marketing center",
"permission_type": 0,
"order": 7
},
{
"remark": "Remarks about modifications",
"permission_code": "permissionCodeinfv",
"permission_name": "namepermissionCodeinfv",
"permission_type": 4,
"order": 3
},
{
"remark": "Remarks about modifications",
"permission_code": "permissionCodeO2Kx",
"permission_name": "namepermissionCodeO2Kx",
"permission_type": 4,
"order": 3
}
],
"t": 1645607375146,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback