curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/scim/Users?token=' \
--header 'Content-Type: application/json' \
--data '
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"userName": "john.doe@example.com",
"active": true,
"displayName": "John Doe",
"emails": [
{
"display": "<string>",
"primary": true,
"type": "work",
"value": "<string>"
}
],
"externalId": "ext-001",
"phoneNumbers": [
{
"display": "<string>",
"primary": true,
"type": "work",
"value": "<string>"
}
],
"title": "Software Engineer"
}
'import requests
url = "https://sandbox.circularo.com/api/v1/scim/Users?token="
payload = {
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
"userName": "john.doe@example.com",
"active": True,
"displayName": "John Doe",
"emails": [
{
"display": "<string>",
"primary": True,
"type": "work",
"value": "<string>"
}
],
"externalId": "ext-001",
"phoneNumbers": [
{
"display": "<string>",
"primary": True,
"type": "work",
"value": "<string>"
}
],
"title": "Software Engineer"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
schemas: ['urn:ietf:params:scim:schemas:core:2.0:User'],
userName: 'john.doe@example.com',
active: true,
displayName: 'John Doe',
emails: [{display: '<string>', primary: true, type: 'work', value: '<string>'}],
externalId: 'ext-001',
phoneNumbers: [{display: '<string>', primary: true, type: 'work', value: '<string>'}],
title: 'Software Engineer'
})
};
fetch('https://sandbox.circularo.com/api/v1/scim/Users?token=', 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://sandbox.circularo.com/api/v1/scim/Users?token=",
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([
'schemas' => [
'urn:ietf:params:scim:schemas:core:2.0:User'
],
'userName' => 'john.doe@example.com',
'active' => true,
'displayName' => 'John Doe',
'emails' => [
[
'display' => '<string>',
'primary' => true,
'type' => 'work',
'value' => '<string>'
]
],
'externalId' => 'ext-001',
'phoneNumbers' => [
[
'display' => '<string>',
'primary' => true,
'type' => 'work',
'value' => '<string>'
]
],
'title' => 'Software Engineer'
]),
CURLOPT_HTTPHEADER => [
"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://sandbox.circularo.com/api/v1/scim/Users?token="
payload := strings.NewReader("{\n \"schemas\": [\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\n ],\n \"userName\": \"john.doe@example.com\",\n \"active\": true,\n \"displayName\": \"John Doe\",\n \"emails\": [\n {\n \"display\": \"<string>\",\n \"primary\": true,\n \"type\": \"work\",\n \"value\": \"<string>\"\n }\n ],\n \"externalId\": \"ext-001\",\n \"phoneNumbers\": [\n {\n \"display\": \"<string>\",\n \"primary\": true,\n \"type\": \"work\",\n \"value\": \"<string>\"\n }\n ],\n \"title\": \"Software Engineer\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://sandbox.circularo.com/api/v1/scim/Users?token=")
.header("Content-Type", "application/json")
.body("{\n \"schemas\": [\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\n ],\n \"userName\": \"john.doe@example.com\",\n \"active\": true,\n \"displayName\": \"John Doe\",\n \"emails\": [\n {\n \"display\": \"<string>\",\n \"primary\": true,\n \"type\": \"work\",\n \"value\": \"<string>\"\n }\n ],\n \"externalId\": \"ext-001\",\n \"phoneNumbers\": [\n {\n \"display\": \"<string>\",\n \"primary\": true,\n \"type\": \"work\",\n \"value\": \"<string>\"\n }\n ],\n \"title\": \"Software Engineer\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/scim/Users?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"schemas\": [\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\n ],\n \"userName\": \"john.doe@example.com\",\n \"active\": true,\n \"displayName\": \"John Doe\",\n \"emails\": [\n {\n \"display\": \"<string>\",\n \"primary\": true,\n \"type\": \"work\",\n \"value\": \"<string>\"\n }\n ],\n \"externalId\": \"ext-001\",\n \"phoneNumbers\": [\n {\n \"display\": \"<string>\",\n \"primary\": true,\n \"type\": \"work\",\n \"value\": \"<string>\"\n }\n ],\n \"title\": \"Software Engineer\"\n}"
response = http.request(request)
puts response.read_body{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 500,
"type": "SYSTEM:INTERNAL_ERROR",
"message": "Internal error",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Provision a SCIM account
POST /scim/Users
Opens an account in the caller’s organization from the representation a provisioning client sends, as described in RFC 7644 Section 3.3, and answers with the account as this service then holds it.
The account is created the same way the platform creates any other, so it lands in the organization and its member role group and counts against the organization’s subscription. Only the attributes this service keeps have any effect - the rest of the SCIM User schema is not stored and is not advertised in GET /scim/Schemas either.
An account this service suspended earlier is not created afresh: sending it again brings the same account back with the attributes given here. A deleted account of any origin is final and does not stand in the way - the new account is opened under the next free name (the requested name with a numeric suffix), and the id and userName in the answer carry that name. A name that belongs to a live account of any other origin is a conflict instead, and the two have to be reconciled by hand.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
Required user role: admin or organization_admin
curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/scim/Users?token=' \
--header 'Content-Type: application/json' \
--data '
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"userName": "john.doe@example.com",
"active": true,
"displayName": "John Doe",
"emails": [
{
"display": "<string>",
"primary": true,
"type": "work",
"value": "<string>"
}
],
"externalId": "ext-001",
"phoneNumbers": [
{
"display": "<string>",
"primary": true,
"type": "work",
"value": "<string>"
}
],
"title": "Software Engineer"
}
'import requests
url = "https://sandbox.circularo.com/api/v1/scim/Users?token="
payload = {
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
"userName": "john.doe@example.com",
"active": True,
"displayName": "John Doe",
"emails": [
{
"display": "<string>",
"primary": True,
"type": "work",
"value": "<string>"
}
],
"externalId": "ext-001",
"phoneNumbers": [
{
"display": "<string>",
"primary": True,
"type": "work",
"value": "<string>"
}
],
"title": "Software Engineer"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
schemas: ['urn:ietf:params:scim:schemas:core:2.0:User'],
userName: 'john.doe@example.com',
active: true,
displayName: 'John Doe',
emails: [{display: '<string>', primary: true, type: 'work', value: '<string>'}],
externalId: 'ext-001',
phoneNumbers: [{display: '<string>', primary: true, type: 'work', value: '<string>'}],
title: 'Software Engineer'
})
};
fetch('https://sandbox.circularo.com/api/v1/scim/Users?token=', 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://sandbox.circularo.com/api/v1/scim/Users?token=",
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([
'schemas' => [
'urn:ietf:params:scim:schemas:core:2.0:User'
],
'userName' => 'john.doe@example.com',
'active' => true,
'displayName' => 'John Doe',
'emails' => [
[
'display' => '<string>',
'primary' => true,
'type' => 'work',
'value' => '<string>'
]
],
'externalId' => 'ext-001',
'phoneNumbers' => [
[
'display' => '<string>',
'primary' => true,
'type' => 'work',
'value' => '<string>'
]
],
'title' => 'Software Engineer'
]),
CURLOPT_HTTPHEADER => [
"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://sandbox.circularo.com/api/v1/scim/Users?token="
payload := strings.NewReader("{\n \"schemas\": [\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\n ],\n \"userName\": \"john.doe@example.com\",\n \"active\": true,\n \"displayName\": \"John Doe\",\n \"emails\": [\n {\n \"display\": \"<string>\",\n \"primary\": true,\n \"type\": \"work\",\n \"value\": \"<string>\"\n }\n ],\n \"externalId\": \"ext-001\",\n \"phoneNumbers\": [\n {\n \"display\": \"<string>\",\n \"primary\": true,\n \"type\": \"work\",\n \"value\": \"<string>\"\n }\n ],\n \"title\": \"Software Engineer\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://sandbox.circularo.com/api/v1/scim/Users?token=")
.header("Content-Type", "application/json")
.body("{\n \"schemas\": [\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\n ],\n \"userName\": \"john.doe@example.com\",\n \"active\": true,\n \"displayName\": \"John Doe\",\n \"emails\": [\n {\n \"display\": \"<string>\",\n \"primary\": true,\n \"type\": \"work\",\n \"value\": \"<string>\"\n }\n ],\n \"externalId\": \"ext-001\",\n \"phoneNumbers\": [\n {\n \"display\": \"<string>\",\n \"primary\": true,\n \"type\": \"work\",\n \"value\": \"<string>\"\n }\n ],\n \"title\": \"Software Engineer\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/scim/Users?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"schemas\": [\n \"urn:ietf:params:scim:schemas:core:2.0:User\"\n ],\n \"userName\": \"john.doe@example.com\",\n \"active\": true,\n \"displayName\": \"John Doe\",\n \"emails\": [\n {\n \"display\": \"<string>\",\n \"primary\": true,\n \"type\": \"work\",\n \"value\": \"<string>\"\n }\n ],\n \"externalId\": \"ext-001\",\n \"phoneNumbers\": [\n {\n \"display\": \"<string>\",\n \"primary\": true,\n \"type\": \"work\",\n \"value\": \"<string>\"\n }\n ],\n \"title\": \"Software Engineer\"\n}"
response = http.request(request)
puts response.read_body{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 500,
"type": "SYSTEM:INTERNAL_ERROR",
"message": "Internal error",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Body
Name the account is created under, which becomes its identifier here and the name the person signs in with. It is folded to lower case and has to satisfy the same rules as a name given anywhere else on the platform, so that provisioning cannot open an account the rest of the system would refuse.
"john.doe@example.com"
Whether the account is to be usable. Sent as false, the account is opened suspended. The strings true and false are accepted in place of a boolean, in any casing, because Azure Entra ID sends its booleans as strings unless the aadOptscim062020 flag is switched on for the tenant.
true
Response
Returns the account as it was created.