Query Users

Last Updated on : 2023-07-06 08:15:17download

Query the information about all the users under a specific organization.

API address

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

Request parameter

Parameter nameTypeINRequiredDescription
organization_codeStringuritrueThe identifier of a specified organization.
space_idStringuritrueThe ID of a specified space.
role_codeStringqueryfalseThe identifier of a specified role.

Return parameter

Parameter nameTypeDescription
resultListThe returned result.

Description of result

Parameter nameTypeDescription
uidStringThe identifier of a specified user.
usernameStringThe username.
remarkStringThe remarks.
space_idStringThe ID of a specified space.
gmt_createLongThe time when it is created.
gmt_modifiedLongThe time when it is modified.
typeIntegerThe user type.
  • 0: ordinary user.
  • 4: user under an organization.

Request example

GET: /v1.0/idaas-prod/spaces/140033534654939****/organizations/Acode/users

Return example

{
    "result": [
        {
            "gmt_create": "1622775600000",
            "remark": "Remarks",
            "gmt_modified": "1622775600000",
            "type": 0,
            "uid": "052533b7bf1d41c78505e421daa3f29a",
            "space_id": "1400335346549391440",
            "username": "username"
        }
    ],
    "t": 1629272469492,
    "success": true
}

Error code

For more information, see error code.