Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Function name

create-users

Parameters

  • data (Required). It is an array of fields. The details of the fields are as follows :

name (Required). String. Either the first, last name or both must be present.
login (Optional). String. Login name of the user. If login is present, the user will be counted towards your license count.
password (Optional). String. Password of the user.
email (Optional). String. Email of the user. For users with login, email is mandatory.
role_ids (Optional). String. A comma separated string of role ids.

Return values

user_id


When your data format is XML, you should post something like this: 

<data>
    <item>
      <name>Joe Cole</name>
      <login>joe.cole</login>
      <password>kaboom1</password>
      <email>joe.cole@celoxis.com</email>
      <role_ids>1738,1912</role_ids>
    </item>
    <item>
      <name>Mary Jane</name>
      <login>mary.jane</login>
      <password>krypton2</password>
      <email>mary.jane@celoxis.com</email>
      <role_ids>1738</role_ids>
    </item>
</data>

 

In case of JSON, you should submit an array of objects with the same properties.

[
  {
    "name":"Joe Cole",
    "login":"joe.cole",
    "password":"kaboom1",
    "email":"joe.cole@celoxis.com"
  }
  {
    "name":"Mary Jane",
    "login":"mary.jane"
  }
]
  • No labels