Create user using SCIM
curl --request POST \
--url https://cloud.memsource.com/web/api2/v1/scim/Users \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'None: <api-key>' \
--data '
{
"emails": [
{
"primary": true,
"type": "<string>",
"value": "<string>"
}
],
"name": {
"familyName": "<string>",
"givenName": "<string>"
},
"userName": "<string>",
"active": true,
"meta": {
"created": "2023-11-07T05:31:56Z",
"location": "<string>"
},
"schemas": "[ \"urn:ietf:params:scim:schemas:core:2.0:User\" ]"
}
'import requests
url = "https://cloud.memsource.com/web/api2/v1/scim/Users"
payload = {
"emails": [
{
"primary": True,
"type": "<string>",
"value": "<string>"
}
],
"name": {
"familyName": "<string>",
"givenName": "<string>"
},
"userName": "<string>",
"active": True,
"meta": {
"created": "2023-11-07T05:31:56Z",
"location": "<string>"
},
"schemas": "[ \"urn:ietf:params:scim:schemas:core:2.0:User\" ]"
}
headers = {
"Authorization": "<authorization>",
"None": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<authorization>',
None: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
emails: [{primary: true, type: '<string>', value: '<string>'}],
name: {familyName: '<string>', givenName: '<string>'},
userName: '<string>',
active: true,
meta: {created: '2023-11-07T05:31:56Z', location: '<string>'},
schemas: '[ "urn:ietf:params:scim:schemas:core:2.0:User" ]'
})
};
fetch('https://cloud.memsource.com/web/api2/v1/scim/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://cloud.memsource.com/web/api2/v1/scim/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([
'emails' => [
[
'primary' => true,
'type' => '<string>',
'value' => '<string>'
]
],
'name' => [
'familyName' => '<string>',
'givenName' => '<string>'
],
'userName' => '<string>',
'active' => true,
'meta' => [
'created' => '2023-11-07T05:31:56Z',
'location' => '<string>'
],
'schemas' => '[ "urn:ietf:params:scim:schemas:core:2.0:User" ]'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json",
"None: <api-key>"
],
]);
$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://cloud.memsource.com/web/api2/v1/scim/Users"
payload := strings.NewReader("{\n \"emails\": [\n {\n \"primary\": true,\n \"type\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"name\": {\n \"familyName\": \"<string>\",\n \"givenName\": \"<string>\"\n },\n \"userName\": \"<string>\",\n \"active\": true,\n \"meta\": {\n \"created\": \"2023-11-07T05:31:56Z\",\n \"location\": \"<string>\"\n },\n \"schemas\": \"[ \\\"urn:ietf:params:scim:schemas:core:2.0:User\\\" ]\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("None", "<api-key>")
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://cloud.memsource.com/web/api2/v1/scim/Users")
.header("Authorization", "<authorization>")
.header("None", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"emails\": [\n {\n \"primary\": true,\n \"type\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"name\": {\n \"familyName\": \"<string>\",\n \"givenName\": \"<string>\"\n },\n \"userName\": \"<string>\",\n \"active\": true,\n \"meta\": {\n \"created\": \"2023-11-07T05:31:56Z\",\n \"location\": \"<string>\"\n },\n \"schemas\": \"[ \\\"urn:ietf:params:scim:schemas:core:2.0:User\\\" ]\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.memsource.com/web/api2/v1/scim/Users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["None"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"emails\": [\n {\n \"primary\": true,\n \"type\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"name\": {\n \"familyName\": \"<string>\",\n \"givenName\": \"<string>\"\n },\n \"userName\": \"<string>\",\n \"active\": true,\n \"meta\": {\n \"created\": \"2023-11-07T05:31:56Z\",\n \"location\": \"<string>\"\n },\n \"schemas\": \"[ \\\"urn:ietf:params:scim:schemas:core:2.0:User\\\" ]\"\n}"
response = http.request(request)
puts response.read_body{
"emails": [
{
"primary": true,
"type": "<string>",
"value": "<string>"
}
],
"name": {
"familyName": "<string>",
"givenName": "<string>"
},
"userName": "<string>",
"active": true,
"id": "<string>",
"meta": {
"created": "2023-11-07T05:31:56Z",
"location": "<string>"
},
"schemas": "[ \"urn:ietf:params:scim:schemas:core:2.0:User\" ]"
}SCIM
Create user using SCIM
deprecated
Requires a valid Bearer token in the Authorization header.
Supported schema: "urn:ietf:params:scim:schemas:core:2.0:User"
Create active user:
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"active": true,
"userName": "john.doe",
"emails": [
{
"primary": true,
"value": "john.doe@example.com",
"type": "work"
}
],
"name": {
"givenName": "John",
"familyName": "Doe"
}
}
POST
/
api2
/
v1
/
scim
/
Users
Create user using SCIM
curl --request POST \
--url https://cloud.memsource.com/web/api2/v1/scim/Users \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'None: <api-key>' \
--data '
{
"emails": [
{
"primary": true,
"type": "<string>",
"value": "<string>"
}
],
"name": {
"familyName": "<string>",
"givenName": "<string>"
},
"userName": "<string>",
"active": true,
"meta": {
"created": "2023-11-07T05:31:56Z",
"location": "<string>"
},
"schemas": "[ \"urn:ietf:params:scim:schemas:core:2.0:User\" ]"
}
'import requests
url = "https://cloud.memsource.com/web/api2/v1/scim/Users"
payload = {
"emails": [
{
"primary": True,
"type": "<string>",
"value": "<string>"
}
],
"name": {
"familyName": "<string>",
"givenName": "<string>"
},
"userName": "<string>",
"active": True,
"meta": {
"created": "2023-11-07T05:31:56Z",
"location": "<string>"
},
"schemas": "[ \"urn:ietf:params:scim:schemas:core:2.0:User\" ]"
}
headers = {
"Authorization": "<authorization>",
"None": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<authorization>',
None: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
emails: [{primary: true, type: '<string>', value: '<string>'}],
name: {familyName: '<string>', givenName: '<string>'},
userName: '<string>',
active: true,
meta: {created: '2023-11-07T05:31:56Z', location: '<string>'},
schemas: '[ "urn:ietf:params:scim:schemas:core:2.0:User" ]'
})
};
fetch('https://cloud.memsource.com/web/api2/v1/scim/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://cloud.memsource.com/web/api2/v1/scim/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([
'emails' => [
[
'primary' => true,
'type' => '<string>',
'value' => '<string>'
]
],
'name' => [
'familyName' => '<string>',
'givenName' => '<string>'
],
'userName' => '<string>',
'active' => true,
'meta' => [
'created' => '2023-11-07T05:31:56Z',
'location' => '<string>'
],
'schemas' => '[ "urn:ietf:params:scim:schemas:core:2.0:User" ]'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json",
"None: <api-key>"
],
]);
$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://cloud.memsource.com/web/api2/v1/scim/Users"
payload := strings.NewReader("{\n \"emails\": [\n {\n \"primary\": true,\n \"type\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"name\": {\n \"familyName\": \"<string>\",\n \"givenName\": \"<string>\"\n },\n \"userName\": \"<string>\",\n \"active\": true,\n \"meta\": {\n \"created\": \"2023-11-07T05:31:56Z\",\n \"location\": \"<string>\"\n },\n \"schemas\": \"[ \\\"urn:ietf:params:scim:schemas:core:2.0:User\\\" ]\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("None", "<api-key>")
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://cloud.memsource.com/web/api2/v1/scim/Users")
.header("Authorization", "<authorization>")
.header("None", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"emails\": [\n {\n \"primary\": true,\n \"type\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"name\": {\n \"familyName\": \"<string>\",\n \"givenName\": \"<string>\"\n },\n \"userName\": \"<string>\",\n \"active\": true,\n \"meta\": {\n \"created\": \"2023-11-07T05:31:56Z\",\n \"location\": \"<string>\"\n },\n \"schemas\": \"[ \\\"urn:ietf:params:scim:schemas:core:2.0:User\\\" ]\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.memsource.com/web/api2/v1/scim/Users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["None"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"emails\": [\n {\n \"primary\": true,\n \"type\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"name\": {\n \"familyName\": \"<string>\",\n \"givenName\": \"<string>\"\n },\n \"userName\": \"<string>\",\n \"active\": true,\n \"meta\": {\n \"created\": \"2023-11-07T05:31:56Z\",\n \"location\": \"<string>\"\n },\n \"schemas\": \"[ \\\"urn:ietf:params:scim:schemas:core:2.0:User\\\" ]\"\n}"
response = http.request(request)
puts response.read_body{
"emails": [
{
"primary": true,
"type": "<string>",
"value": "<string>"
}
],
"name": {
"familyName": "<string>",
"givenName": "<string>"
},
"userName": "<string>",
"active": true,
"id": "<string>",
"meta": {
"created": "2023-11-07T05:31:56Z",
"location": "<string>"
},
"schemas": "[ \"urn:ietf:params:scim:schemas:core:2.0:User\" ]"
}Authorizations
No authentication required. This is used for public endpoints.
Headers
Bearer token for SCIM authentication
Body
application/jsonapplication/scim+json
SCIM user resource
Required array length:
1 - 2147483647 elementsShow child attributes
Show child attributes
Show child attributes
Show child attributes
When true, the user account is active and can log in
SCIM metadata for a resource
Show child attributes
Show child attributes
Example:
"[ \"urn:ietf:params:scim:schemas:core:2.0:User\" ]"
Response
Created
Required array length:
1 - 2147483647 elementsShow child attributes
Show child attributes
Show child attributes
Show child attributes
When true, the user account is active and can log in
Server-generated unique identifier; not writable by the client
SCIM metadata for a resource
Show child attributes
Show child attributes
Example:
"[ \"urn:ietf:params:scim:schemas:core:2.0:User\" ]"
Was this page helpful?
⌘I