<?php
$user = array("name" => "userId",
"password" => "userPwd",
"emailAddress" => "user@example.com",
"displayName" => "< USER DISPLAY NAME >",
"notification" => "true");
$json = json_encode($user);
print("$json\n");
$http_status = 0;
$url = "https://jira-host-name/rest/api/2/user/";
$ret = Curl($url, $json, $http_status) ;
var_dump($ret);
?>
PHP