SCIM Reference
Get All Users
Get all users
GET
/
api
/
scim
/
v2
/
Users
Get All Users
curl --request GET \
--url https://app.sendoso.com/api/scim/v2/Users \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.sendoso.com/api/scim/v2/Users"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sendoso.com/api/scim/v2/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://app.sendoso.com/api/scim/v2/Users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.sendoso.com/api/scim/v2/Users"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.sendoso.com/api/scim/v2/Users")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.sendoso.com/api/scim/v2/Users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
schemas: ["urn:ietf:params:scim:schemas:core:2.0:User"],
itemsPerPage: 2,
startIndex: 1,
totalResults: 100,
Resources: [
{
id: "1000",
userName: "john.doe@sendoso.com",
active: false,
name: {
givenName: "John",
familyName: "Doe",
},
emails: [
{ value: "john.doe@sendoso.com" },
],
userType: "sender",
division: "Marketing Ops",
},
{
id: "2000",
userName: "jane.doe@sendoso.com",
active: true,
name: {
givenName: "Jane",
familyName: "Doe",
},
emails: [
{ value: "jane.doe@sendoso.com" },
],
userType: "admin",
division: "Sales",
}
]
}
Parameters
The 1-based index of the first query result. A value less than 1 SHALL be interpreted as 1. By default this value is
1Non-negative integer. Specifies the desired maximum number of query results per page, e.g.,
10. When specified, the service provider MUST NOT return more results than specified, although it MAY return fewer results. If unspecified, the maximum will be 100Response
The SCIM RFC schema for the User List resource - always
urn:ietf:params:scim:api:messages:2.0:ListResponseNon-negative integer. Specifies the number of query results returned in a query response page, e.g.,
10.Non-negative integer. Specifies the total number of results matching the client query, e.g.,
1000.The 1-based index of the first result in the current set of query results, e.g.,
1.Hide Resources
Hide Resources
The user’s identifier
The user’s email address
Whether or not the user is active or not in the Sendoso platform.
The user’s personal balance
The user’s role. Values can be
sender, manager, admin.The user’s team.
{
schemas: ["urn:ietf:params:scim:schemas:core:2.0:User"],
itemsPerPage: 2,
startIndex: 1,
totalResults: 100,
Resources: [
{
id: "1000",
userName: "john.doe@sendoso.com",
active: false,
name: {
givenName: "John",
familyName: "Doe",
},
emails: [
{ value: "john.doe@sendoso.com" },
],
userType: "sender",
division: "Marketing Ops",
},
{
id: "2000",
userName: "jane.doe@sendoso.com",
active: true,
name: {
givenName: "Jane",
familyName: "Doe",
},
emails: [
{ value: "jane.doe@sendoso.com" },
],
userType: "admin",
division: "Sales",
}
]
}
⌘I
Get All Users
curl --request GET \
--url https://app.sendoso.com/api/scim/v2/Users \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.sendoso.com/api/scim/v2/Users"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sendoso.com/api/scim/v2/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://app.sendoso.com/api/scim/v2/Users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.sendoso.com/api/scim/v2/Users"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.sendoso.com/api/scim/v2/Users")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.sendoso.com/api/scim/v2/Users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
schemas: ["urn:ietf:params:scim:schemas:core:2.0:User"],
itemsPerPage: 2,
startIndex: 1,
totalResults: 100,
Resources: [
{
id: "1000",
userName: "john.doe@sendoso.com",
active: false,
name: {
givenName: "John",
familyName: "Doe",
},
emails: [
{ value: "john.doe@sendoso.com" },
],
userType: "sender",
division: "Marketing Ops",
},
{
id: "2000",
userName: "jane.doe@sendoso.com",
active: true,
name: {
givenName: "Jane",
familyName: "Doe",
},
emails: [
{ value: "jane.doe@sendoso.com" },
],
userType: "admin",
division: "Sales",
}
]
}