Query Member's Organization

Last Updated on : 2023-07-06 08:18:56download

Get the information about a specified organization to which a specified member belongs, including the organization name, parent organization name (if any), organization manager, organization enabling status, and space ID.

API address

GET: /v1.0/iot-03/idaas/spaces/{space_id}/users/{uid}/organizations

Request parameter

Parameter nameTypeINRequiredDescription
uidStringuritrueThe user's identifier.
space_idStringuritrueThe ID of a specified space.

Return parameter

Parameter nameTypeDescription
resultListThe returned result.

Description of result

Parameter nameTypeDescription
codeStringThe identifier of a specified organization.
nameStringThe name of a specified organization.
parent_codeStringThe identifier of a specified parent organization.
remarkStringThe remarks of a specified organization.
owner_uidStringThe user ID of the organization owner.
statusIntegerIndicates whether the organization is enabled. Valid values:
  • 0: enabled.
  • 1: not enabled.
space_idStringThe ID of a specified space.

Request example

GET: /v1.0/iot-03/idaas/spaces/1400727198159081506/users/1400335346599528750/organizations

Return example

{
    "result": [
        {
            "gmt_create": "1622775600000",
            "parent_name": "testParentOrgName",
            "code": "1400335346598629930",
            "remark": "testRemark",
            "gmt_modified": "1622775600000",
            "owner_uid": "1400335346599528750",
            "name": "testOrgName",
            "parent_code": "1400335346598629666",
            "space_id": "1400727198159081506",
            "status": 0
        }
    ],
    "t": 1629272469492,
    "success": true
}

Error code

For more information, see error code.