curl --request POST \
--url https://{instance}.cyrisma.com/ta/v1/msp/admin/users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tenant_id": "5c0e7a92-3f4b-4d1e-a8c6-7b2d9e1f0a34",
"first_name": "Jane",
"last_name": "Doe",
"email": "jane.doe@contoso.example",
"password": "…",
"role": "tenant-admin"
}
'import requests
url = "https://{instance}.cyrisma.com/ta/v1/msp/admin/users"
payload = {
"tenant_id": "5c0e7a92-3f4b-4d1e-a8c6-7b2d9e1f0a34",
"first_name": "Jane",
"last_name": "Doe",
"email": "jane.doe@contoso.example",
"password": "…",
"role": "tenant-admin"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tenant_id: '5c0e7a92-3f4b-4d1e-a8c6-7b2d9e1f0a34',
first_name: 'Jane',
last_name: 'Doe',
email: 'jane.doe@contoso.example',
password: '…',
role: 'tenant-admin'
})
};
fetch('https://{instance}.cyrisma.com/ta/v1/msp/admin/users', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{instance}.cyrisma.com/ta/v1/msp/admin/users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tenant_id' => '5c0e7a92-3f4b-4d1e-a8c6-7b2d9e1f0a34',
'first_name' => 'Jane',
'last_name' => 'Doe',
'email' => 'jane.doe@contoso.example',
'password' => '…',
'role' => 'tenant-admin'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{instance}.cyrisma.com/ta/v1/msp/admin/users"
payload := strings.NewReader("{\n \"tenant_id\": \"5c0e7a92-3f4b-4d1e-a8c6-7b2d9e1f0a34\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Doe\",\n \"email\": \"jane.doe@contoso.example\",\n \"password\": \"…\",\n \"role\": \"tenant-admin\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{instance}.cyrisma.com/ta/v1/msp/admin/users")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tenant_id\": \"5c0e7a92-3f4b-4d1e-a8c6-7b2d9e1f0a34\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Doe\",\n \"email\": \"jane.doe@contoso.example\",\n \"password\": \"…\",\n \"role\": \"tenant-admin\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{instance}.cyrisma.com/ta/v1/msp/admin/users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tenant_id\": \"5c0e7a92-3f4b-4d1e-a8c6-7b2d9e1f0a34\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Doe\",\n \"email\": \"jane.doe@contoso.example\",\n \"password\": \"…\",\n \"role\": \"tenant-admin\"\n}"
response = http.request(request)
puts response.read_body{
"user_id": "0b9c4d2e-6f1a-4c83-9e57-d3a8b1f2c640",
"first_name": "Jane",
"last_name": "Doe",
"display_name": "Jane Doe",
"email": "jane.doe@contoso.example",
"tenant_id": "5c0e7a92-3f4b-4d1e-a8c6-7b2d9e1f0a34",
"tenant_name": "Contoso Ltd",
"roles": [
"tenant-admin"
],
"scopes": [
"pulse.login",
"pulse.read",
"pulse.write"
],
"status": "active",
"last_login_at": "2026-09-20T14:05:12.482301+00:00",
"selected_mfa_method": "totp",
"enrolled_mfa_methods": [
"email",
"totp"
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"errors": {}
}Create a user
Creates a user and assigns role with access to assigned tenant. To create a user, pulse.write and an admin role are required. Returns 201 with the new user.
- 400: a validation problem naming the field, or
password_rejected/email_rejectedwhen the password or email is not accepted. - 401
invalid_credentials: missing, invalid or outdated token, or an API-key token. - 403
tenant_context_denied: no admin role orpulse.write, ortenant_idis outside your hierarchy. - 404
tenant_context_not_found:tenant_iddoes not exist. - 409
email_taken: another user already has this email. - 502
legacy_provisioning_failed: the tenant’s own server could not create the user; try again later.
curl --request POST \
--url https://{instance}.cyrisma.com/ta/v1/msp/admin/users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tenant_id": "5c0e7a92-3f4b-4d1e-a8c6-7b2d9e1f0a34",
"first_name": "Jane",
"last_name": "Doe",
"email": "jane.doe@contoso.example",
"password": "…",
"role": "tenant-admin"
}
'import requests
url = "https://{instance}.cyrisma.com/ta/v1/msp/admin/users"
payload = {
"tenant_id": "5c0e7a92-3f4b-4d1e-a8c6-7b2d9e1f0a34",
"first_name": "Jane",
"last_name": "Doe",
"email": "jane.doe@contoso.example",
"password": "…",
"role": "tenant-admin"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tenant_id: '5c0e7a92-3f4b-4d1e-a8c6-7b2d9e1f0a34',
first_name: 'Jane',
last_name: 'Doe',
email: 'jane.doe@contoso.example',
password: '…',
role: 'tenant-admin'
})
};
fetch('https://{instance}.cyrisma.com/ta/v1/msp/admin/users', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{instance}.cyrisma.com/ta/v1/msp/admin/users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tenant_id' => '5c0e7a92-3f4b-4d1e-a8c6-7b2d9e1f0a34',
'first_name' => 'Jane',
'last_name' => 'Doe',
'email' => 'jane.doe@contoso.example',
'password' => '…',
'role' => 'tenant-admin'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{instance}.cyrisma.com/ta/v1/msp/admin/users"
payload := strings.NewReader("{\n \"tenant_id\": \"5c0e7a92-3f4b-4d1e-a8c6-7b2d9e1f0a34\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Doe\",\n \"email\": \"jane.doe@contoso.example\",\n \"password\": \"…\",\n \"role\": \"tenant-admin\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{instance}.cyrisma.com/ta/v1/msp/admin/users")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tenant_id\": \"5c0e7a92-3f4b-4d1e-a8c6-7b2d9e1f0a34\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Doe\",\n \"email\": \"jane.doe@contoso.example\",\n \"password\": \"…\",\n \"role\": \"tenant-admin\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{instance}.cyrisma.com/ta/v1/msp/admin/users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tenant_id\": \"5c0e7a92-3f4b-4d1e-a8c6-7b2d9e1f0a34\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Doe\",\n \"email\": \"jane.doe@contoso.example\",\n \"password\": \"…\",\n \"role\": \"tenant-admin\"\n}"
response = http.request(request)
puts response.read_body{
"user_id": "0b9c4d2e-6f1a-4c83-9e57-d3a8b1f2c640",
"first_name": "Jane",
"last_name": "Doe",
"display_name": "Jane Doe",
"email": "jane.doe@contoso.example",
"tenant_id": "5c0e7a92-3f4b-4d1e-a8c6-7b2d9e1f0a34",
"tenant_name": "Contoso Ltd",
"roles": [
"tenant-admin"
],
"scopes": [
"pulse.login",
"pulse.read",
"pulse.write"
],
"status": "active",
"last_login_at": "2026-09-20T14:05:12.482301+00:00",
"selected_mfa_method": "totp",
"enrolled_mfa_methods": [
"email",
"totp"
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"errors": {}
}Authorizations
A machine-client token from POST /v1/auth/client-token. Reads need the pulse.read scope; provisioning and tenant updates need pulse.write, which the token only carries when requested_scopes asks for it. Creating, changing, disabling and resetting MFA for users, and the tenant sign-in policy, need a signed-in user's token instead: they reject API-key tokens.
Body
Creates a user with access to one tenant. The user can sign in straight away with the
password you set; no invitation email is sent. Validation failures return 400 with the field
names as keys, for example {"email": ["invalid"]}.
Response
Created
A user and their access to one tenant.
