Last Updated on : 2023-07-06 09:13:44download
Query all roles of a single user based on the user ID.
GET: /v1.0/iot-02/users/{uid}/roles
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
uid | String | uri | true | The user ID. |
Parameter name | Type | Description |
---|---|---|
result | List | The returned result of a specified user's roles. |
Description of result
Parameter name | Type | Description |
---|---|---|
role_name | String | The name of a specified role. |
role_code | String | The identifier of a specified role. |
remark | String | The remarks. |
GET: /v1.0/iot-02/users/bsh1645068029415****/roles
{
"tid": "520dfeab948811ec82481264f1be8bd1",
"result": [
{
"role_code": "roleCodeoyKM",
"remark": "",
"role_name": "role1"
},
{
"role_code": "roleCodehnva",
"remark": "11",
"role_name": "role2"
},
{
"role_code": "roleCode323j",
"remark": "",
"role_name": "role3"
},
{
"role_code": "roleCodegcnI",
"remark": "",
"role_name": "role3"
}
],
"t": 1645607375560,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback