Get Organization


Get the organization’s information.

Request Format

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

Request Parameters (Header)

Name Required/Optional Data Type Description
Authorization Required String Session ID, in the format of bearer token. You can get the session ID after calling the Log In API.
Content-Type Optional String The only accepted value is “application/json”.

Request Parameters (Body)

Name Required/Optional Data Type Description
id Required String The OU ID. How to get OU ID>>

Response Parameters

Name Data Type Description
organization Organization Struct The organization’s information. For more information, see Organization Struct.

Sample

Request Sample

url: https://{apigw-address}/enos-iam-service/v2.0/organization/info
method: POST
headers:{
  "Authorization":"yourBearerToken",
  "Content-Type":"application/json"
}
requestBody: {"id":"yourOrgId"}

Return Sample

{
    "fail": false,
    "success": true,
    "organization": {
        "createdByUserId": "userId",
        "resourceId": "resourceId",
        "code": "",
        "approvalState": 1,
        "description": "",
        "type": 2,
        "ownerId": "userId",
        "createTime": "2018-11-20 04:03:06.0",
        "domain": "",
        "extra": {
            "owner": "ownerId",
            "property": "2",
            "approvedBy": "system",
            "scale": "0",
            "registerType": "0",
            "approvedAt": "2018-11-20 04:03:06",
            "version": "2"
        },
        "name": "Demo",
        "id": "orgId",
        "state": 0,
        "certificationState": 1
    },
    "failed": false,
    "message": "",
    "status": 0,
    "successful": true
}