Add Users

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

Add multiple users under a specified organization, and bind the members with the organization.

API address

POST: /v1.0/iot-03/idaas/spaces/{space_id}/organization-users/actions/batch-add

Request parameter

Parameter nameTypeINRequiredDescription
space_idStringuritrueThe ID of a specified space.

Description of body

Parameter nameTypeINRequiredDescription
organization_codeString trueThe identifier of a specified organization.
uid_listList trueThe list of user IDs.

Description of uid_list

Parameter nameTypeINRequiredDescription
uidString trueThe user's identifier.

Return parameter

Parameter nameTypeDescription
resultBooleanThe operation result.

Request example

POST: /v1.0/iot-03/idaas/spaces/1400335346549391440/organization-users/actions/batch-add
{
  "organization_code": "1400335346598629930",
  "uid_List": [
    "052533b7bf1d41c78505e421daa3f29a",
    "052533b7bf1d41c78505e421daa3f25b"
  ]
}

Return example

{
    "result": true,
    "t": 1629272469492,
    "success": true
}

Error code

For more information, see error code.