Créer un jeton SCIM de provisionnement
curl --request POST \
--url https://{tenantDomain}/my-org/v1/identity-providers/{idp_id}/provisioning/scim-tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"token_lifetime": 86400
}
'import requests
url = "https://{tenantDomain}/my-org/v1/identity-providers/{idp_id}/provisioning/scim-tokens"
payload = { "token_lifetime": 86400 }
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({token_lifetime: 86400})
};
fetch('https://{tenantDomain}/my-org/v1/identity-providers/{idp_id}/provisioning/scim-tokens', 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://{tenantDomain}/my-org/v1/identity-providers/{idp_id}/provisioning/scim-tokens",
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([
'token_lifetime' => 86400
]),
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://{tenantDomain}/my-org/v1/identity-providers/{idp_id}/provisioning/scim-tokens"
payload := strings.NewReader("{\n \"token_lifetime\": 86400\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://{tenantDomain}/my-org/v1/identity-providers/{idp_id}/provisioning/scim-tokens")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"token_lifetime\": 86400\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/my-org/v1/identity-providers/{idp_id}/provisioning/scim-tokens")
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 \"token_lifetime\": 86400\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2025-04-11T20:11:45.431Z",
"token": "tok_tuz8H9hWQ8LaCkdh....",
"token_id": "tok_tuz8H9hWQ8LaCkdh",
"valid_until": "2025-04-12T20:11:45.431Z"
}Créer un jeton SCIM de provisionnement IdP
Créez un nouveau jeton SCIM pour la configuration de provisionnement d’un fournisseur d’identité précisé par son ID pour cette organisation.
POST
/
identity-providers
/
{idp_id}
/
provisioning
/
scim-tokens
Créer un jeton SCIM de provisionnement
curl --request POST \
--url https://{tenantDomain}/my-org/v1/identity-providers/{idp_id}/provisioning/scim-tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"token_lifetime": 86400
}
'import requests
url = "https://{tenantDomain}/my-org/v1/identity-providers/{idp_id}/provisioning/scim-tokens"
payload = { "token_lifetime": 86400 }
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({token_lifetime: 86400})
};
fetch('https://{tenantDomain}/my-org/v1/identity-providers/{idp_id}/provisioning/scim-tokens', 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://{tenantDomain}/my-org/v1/identity-providers/{idp_id}/provisioning/scim-tokens",
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([
'token_lifetime' => 86400
]),
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://{tenantDomain}/my-org/v1/identity-providers/{idp_id}/provisioning/scim-tokens"
payload := strings.NewReader("{\n \"token_lifetime\": 86400\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://{tenantDomain}/my-org/v1/identity-providers/{idp_id}/provisioning/scim-tokens")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"token_lifetime\": 86400\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/my-org/v1/identity-providers/{idp_id}/provisioning/scim-tokens")
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 \"token_lifetime\": 86400\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2025-04-11T20:11:45.431Z",
"token": "tok_tuz8H9hWQ8LaCkdh....",
"token_id": "tok_tuz8H9hWQ8LaCkdh",
"valid_until": "2025-04-12T20:11:45.431Z"
}Autorisations
OAuth2ClientCredentialsOAuth2AuthCode
The access token received from the authorization server in the OAuth 2.0 flow.
Paramètres de chemin
Identifiant du fournisseur d’identité.
Pattern:
^con_[A-Za-z0-9]{16}$Corps
application/json
Durée de validité du jeton en secondes. Ne pas définir pour les jetons sans expiration.
Réponse
Le jeton SCIM de provisionnement a été créé avec succès.
L’horodatage de création du jeton.
L’identifiant du jeton.
Le jeton du client SCIM.
Les scopes du jeton.
L’horodatage indiquant jusqu’à quand le jeton est valide (n’existe pas pour les jetons sans expiration).
⌘I