List User Organization


列出用户所在组织。

请求格式

POST https://{apigw-address}/enos-iam-service/v2.0/user/organization/list

响应参数

名称

数据类型

描述

organizations

Organization 结构体数组

组织信息。参见 Organization 结构体>>

错误码

代码

描述

401

提供的 Bearer token 无效。

404

未找到会话信息。

错误码返回 message(供参考)

* 401: Authenticated.
* 404: User login session expired; Organization does not exist.

示例

请求示例

url: https://{apigw-address}/enos-iam-service/v2.0/user/organization/list

method: POST

requestBody: {"id":"yourOrgId"}

headers: {
        "Authorization":"yourBearerToken"
        }

返回示例

{
    "fail": false,
    "success": true,
    "organizations": [{
        "createdByUserId": "userId1",
        "resourceId": "resourceId1",
        "code": "",
        "approvalState": 1,
        "description": "",
        "type": 2,
        "ownerId": "ownerId1",
        "createTime": "2018-11-20 04:03:06.0",
        "domain": "",
        "extra": {
            "owner": "owner1",
            "property": "2",
            "approvedBy": "system",
            "scale": "0",
            "registerType": "0",
            "approvedAt": "2018-11-20 04:03:06",
            "version": "2"
        },
        "name": "Demo",
        "id": "orgId1",
        "state": 0,
        "certificationState": 1
    }, {
        "createdByUserId": "userId2",
        "resourceId": "resourceId2",
        "code": "",
        "approvalState": 1,
        "description": "",
        "type": 2,
        "ownerId": "ownerId2",
        "createTime": "2020-04-13 04:54:51.0",
        "domain": "data_o15867536917181",
        "extra": {
            "owner": "owner2",
            "approvedBy": "system",
            "scale": "0",
            "registerType": "0",
            "approvedAt": "2020-04-13 04:55:04"
        },
        "name": "data scientist",
        "id": "orgId2",
        "state": 0,
        "certificationState": 1
    }],
    "failed": false,
    "message": "",
    "status": 0,
    "successful": true
}