Go
package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
client "github.com/auth0/go-auth0/management/management/client"
connections "github.com/auth0/go-auth0/management/management/connections"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &connections.UpdateScimConfigurationRequestContent{
UserIdAttribute: "user_id_attribute",
Mapping: []*management.ScimMappingItem{
&management.ScimMappingItem{},
},
}
client.Connections.ScimConfiguration.Update(
context.TODO(),
"id",
request,
)
}import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.connections.scimConfiguration.update("id", {
userIdAttribute: "user_id_attribute",
mapping: [
{},
],
});
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.connections.scimConfiguration.update("id", {
userIdAttribute: "user_id_attribute",
mapping: [
{},
],
});
}
main();curl --request PATCH \
--url https://{tenantDomain}/api/v2/connections/{id}/scim-configuration \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mapping": [
{
"auth0": "<string>",
"scim": "<string>"
}
],
"user_id_attribute": "<string>"
}
'import requests
url = "https://{tenantDomain}/api/v2/connections/{id}/scim-configuration"
payload = {
"mapping": [
{
"auth0": "<string>",
"scim": "<string>"
}
],
"user_id_attribute": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/api/v2/connections/{id}/scim-configuration",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'mapping' => [
[
'auth0' => '<string>',
'scim' => '<string>'
]
],
'user_id_attribute' => '<string>'
]),
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;
}HttpResponse<String> response = Unirest.patch("https://{tenantDomain}/api/v2/connections/{id}/scim-configuration")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mapping\": [\n {\n \"auth0\": \"<string>\",\n \"scim\": \"<string>\"\n }\n ],\n \"user_id_attribute\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v2/connections/{id}/scim-configuration")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mapping\": [\n {\n \"auth0\": \"<string>\",\n \"scim\": \"<string>\"\n }\n ],\n \"user_id_attribute\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"connection_id": "<string>",
"connection_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"mapping": [
{
"auth0": "<string>",
"scim": "<string>"
}
],
"strategy": "<string>",
"tenant_name": "<string>",
"updated_on": "2023-11-07T05:31:56Z",
"user_id_attribute": "<string>"
}Mettre à jour la configuration SCIM
Met à jour une configuration SCIM à l’aide de son connectionId.
PATCH
https://{tenantDomain}/api/v2
/
connections
/
{id}
/
scim-configuration
Go
package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
client "github.com/auth0/go-auth0/management/management/client"
connections "github.com/auth0/go-auth0/management/management/connections"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &connections.UpdateScimConfigurationRequestContent{
UserIdAttribute: "user_id_attribute",
Mapping: []*management.ScimMappingItem{
&management.ScimMappingItem{},
},
}
client.Connections.ScimConfiguration.Update(
context.TODO(),
"id",
request,
)
}import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.connections.scimConfiguration.update("id", {
userIdAttribute: "user_id_attribute",
mapping: [
{},
],
});
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.connections.scimConfiguration.update("id", {
userIdAttribute: "user_id_attribute",
mapping: [
{},
],
});
}
main();curl --request PATCH \
--url https://{tenantDomain}/api/v2/connections/{id}/scim-configuration \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mapping": [
{
"auth0": "<string>",
"scim": "<string>"
}
],
"user_id_attribute": "<string>"
}
'import requests
url = "https://{tenantDomain}/api/v2/connections/{id}/scim-configuration"
payload = {
"mapping": [
{
"auth0": "<string>",
"scim": "<string>"
}
],
"user_id_attribute": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/api/v2/connections/{id}/scim-configuration",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'mapping' => [
[
'auth0' => '<string>',
'scim' => '<string>'
]
],
'user_id_attribute' => '<string>'
]),
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;
}HttpResponse<String> response = Unirest.patch("https://{tenantDomain}/api/v2/connections/{id}/scim-configuration")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mapping\": [\n {\n \"auth0\": \"<string>\",\n \"scim\": \"<string>\"\n }\n ],\n \"user_id_attribute\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v2/connections/{id}/scim-configuration")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mapping\": [\n {\n \"auth0\": \"<string>\",\n \"scim\": \"<string>\"\n }\n ],\n \"user_id_attribute\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"connection_id": "<string>",
"connection_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"mapping": [
{
"auth0": "<string>",
"scim": "<string>"
}
],
"strategy": "<string>",
"tenant_name": "<string>",
"updated_on": "2023-11-07T05:31:56Z",
"user_id_attribute": "<string>"
}Autorisations
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Paramètres de chemin
ID de la connexion dont la configuration SCIM doit être mise à jour
Corps
application/jsonapplication/x-www-form-urlencoded
Réponse
La configuration SCIM de la connexion a été mise à jour. Consultez les schémas de réponse pour le schéma correspondant.
L’identifiant de la connexion
Le nom de la connexion
La date et l’heure au format ISO 8601 à laquelle la configuration SCIM a été créée
La correspondance entre Auth0 et SCIM
Show child attributes
Show child attributes
La stratégie de cette connexion
Le nom du locataire
La date et l’heure au format ISO 8601 de la dernière mise à jour de la configuration SCIM
Attribut d’ID utilisateur servant à générer des ID utilisateur uniques
⌘I