Last Updated on : 2023-07-06 09:11:11download
Query roles of a single user.
GET: /v1.0/iot-03/idaas/spaces/{space_id}/users/{uid}/roles
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
space_id | String | uri | true | The ID of a specified space. |
uid | String | uri | true | The user ID (UID). |
Parameter name | Type | Description |
---|---|---|
result | List |
Description of result
Parameter name | Type | Description |
---|---|---|
role_code | String | The identifier of a specified role. |
role_name | String | The name of a specific role. |
remark | String | The remarks. |
space_id | String | The ID of a specified space. |
GET: /v1.0/iot-03/idaas/spaces/12345/users/uid1/roles
{
"result": [
{
"role_code": "role_code1",
"remark": "remark1",
"role_name": "role_name1",
"space_id": "12345"
},
{
"role_code": "role_code2",
"remark": "remark2",
"role_name": "role_name2",
"space_id": "12345"
}
],
"t": 1623032502656,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback