Create new user

Adds a new user to the authenticated organization.

Request

  • HTTP Verb POST
  • URI /user

POST Parameters

email email for the user login *
member_id a custom unique identifier for this user, could be the user's id from your database
name user first name *
surname user last name *
title user title, such as Mr, Lady, Dr, etc.
suffix user letters after name
country country name (defaults to the Organization country)
region region name
city city name
licensing_region licensing region name (if different from region)
company company name
professionalRef professional reference number **

(*) Required always.

(**) Required only by some organizations.

Request example

$API->addUser(array(
  "email" => "adrian.perez@wcea.education",
  "member_id" => "x_123",
  "name" => "Adrián",
  "surname" => "Pérez",
  "title" => "Mr",
  "suffix" => "PhD",
  "country" => "Spain",
  "region" => "Andalucía",
  "licensing_region" => "Andalucía",
  "city" => "Marbella",
  "company" => "WCEA"
));

Output Example

array(
  "id" => 1,
  "email" => "adrian.perez@wcea.education",
  "member_id" => "x_123",
  "name" => "Adrián",
  "surname" => "Pérez",
  "title" => "Mr",
  "suffix" => "PhD",
  "country" => "Spain",
  "region" => "Andalucía",
  "licensing_region" => "Andalucía",
  "city" => "Marbella",
  "company" => "WCEA"
)