Get Users with Asset Access¶
Get the list of users who have access permission to a specific asset.
Request Format¶
POST https://{apigw-address}/app-portal-service/v2.2/asset/authorize/user/list
Request Parameters (Body)¶
Name |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
assetId |
Mandatory |
String |
The asset ID. How to get asset ID>> |
orgId |
Mandatory |
String |
The organization ID which the asset belongs to. How to get organization ID>> |
Response Parameters¶
Name |
Data Type |
Description |
---|---|---|
data |
Data Struct |
The user information |
Data Struct¶
Name |
Data Type |
Description |
---|---|---|
id |
String |
The user ID |
name |
String |
The user name |
name |
String |
The user description |
Error Codes¶
Code |
Description |
---|---|
31400 |
The structureIds or assetIds are required |
31404 |
The structure or asset cannot be found |
Samples¶
Request Sample¶
url: https://{apigw-address}/app-portal-service/v2.2/asset/authorize/user/list
method: POST
requestBody:
{
"orgId":"yourOrgId",
"assetId":"Dqp9GZsT"
}
Return Sample¶
{
"code": 0,
"message": "OK",
"data": [
{
"id": "theUserId",
"name": "Pony",
"description": ""
}
]
}