C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
public partial class Examples
{
public async Task Example() {
var client = new ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
await client.Connections.DirectoryProvisioning.GetAsync(
"id"
);
}
}package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.connections().directoryProvisioning().get("id");
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->connections->directoryProvisioning->get(
'id',
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.connections.directory_provisioning.get(
id="id",
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.connections.directory_provisioning.get(id: "id")
curl --request GET \
--url https://{tenantDomain}/api/v2/connections/{id}/directory-provisioning \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{tenantDomain}/api/v2/connections/{id}/directory-provisioning', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{tenantDomain}/api/v2/connections/{id}/directory-provisioning"
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))
}{
"connection_id": "<string>",
"connection_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"mapping": [
{
"auth0": "<string>",
"idp": "<string>"
}
],
"strategy": "<string>",
"synchronize_automatically": true,
"updated_at": "2023-11-07T05:31:56Z",
"last_synchronization_at": "2023-11-07T05:31:56Z",
"last_synchronization_error": "<string>",
"last_synchronization_status": "<string>"
}ディレクトリプロビジョニングを取得
接続のディレクトリプロビジョニング設定を取得します。
GET
https://{tenantDomain}/api/v2
/
connections
/
{id}
/
directory-provisioning
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
public partial class Examples
{
public async Task Example() {
var client = new ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
await client.Connections.DirectoryProvisioning.GetAsync(
"id"
);
}
}package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.connections().directoryProvisioning().get("id");
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->connections->directoryProvisioning->get(
'id',
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.connections.directory_provisioning.get(
id="id",
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.connections.directory_provisioning.get(id: "id")
curl --request GET \
--url https://{tenantDomain}/api/v2/connections/{id}/directory-provisioning \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{tenantDomain}/api/v2/connections/{id}/directory-provisioning', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{tenantDomain}/api/v2/connections/{id}/directory-provisioning"
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))
}{
"connection_id": "<string>",
"connection_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"mapping": [
{
"auth0": "<string>",
"idp": "<string>"
}
],
"strategy": "<string>",
"synchronize_automatically": true,
"updated_at": "2023-11-07T05:31:56Z",
"last_synchronization_at": "2023-11-07T05:31:56Z",
"last_synchronization_error": "<string>",
"last_synchronization_status": "<string>"
}承認
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
パスパラメータ
ディレクトリプロビジョニング設定を取得する対象の接続の ID
レスポンス
接続のディレクトリプロビジョニング設定。スキーマについては Response Schemas を参照してください。
接続の識別子
接続名
ディレクトリのプロビジョニング設定が作成された日時
Auth0 と IdP のユーザー属性間のマッピング
Minimum array length:
1Show child attributes
Show child attributes
接続の strategy
定期的な自動同期が有効かどうか
ディレクトリのプロビジョニング設定が最後に更新された日時
接続が最後に同期された日時
最後の同期時のエラーメッセージ(ある場合)
最後の同期のステータス
グループ同期の設定
利用可能なオプション:
all, off, selected ⌘I