1. Packages
  2. Auth0 Provider
  3. API Docs
  4. getConnectionDirectory
Auth0 v3.35.0 published on Tuesday, Dec 23, 2025 by Pulumi
auth0 logo
Auth0 v3.35.0 published on Tuesday, Dec 23, 2025 by Pulumi

    Data source to retrieve directory provisioning configuration for an Auth0 connection by connection_id.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as auth0 from "@pulumi/auth0";
    
    const myDirectoryConfig = auth0.getConnectionDirectory({
        connectionId: "con_xxxxxxxxxxxxx",
    });
    
    import pulumi
    import pulumi_auth0 as auth0
    
    my_directory_config = auth0.get_connection_directory(connection_id="con_xxxxxxxxxxxxx")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-auth0/sdk/v3/go/auth0"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := auth0.LookupConnectionDirectory(ctx, &auth0.LookupConnectionDirectoryArgs{
    			ConnectionId: "con_xxxxxxxxxxxxx",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Auth0 = Pulumi.Auth0;
    
    return await Deployment.RunAsync(() => 
    {
        var myDirectoryConfig = Auth0.GetConnectionDirectory.Invoke(new()
        {
            ConnectionId = "con_xxxxxxxxxxxxx",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.auth0.Auth0Functions;
    import com.pulumi.auth0.inputs.GetConnectionDirectoryArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var myDirectoryConfig = Auth0Functions.getConnectionDirectory(GetConnectionDirectoryArgs.builder()
                .connectionId("con_xxxxxxxxxxxxx")
                .build());
    
        }
    }
    
    variables:
      myDirectoryConfig:
        fn::invoke:
          function: auth0:getConnectionDirectory
          arguments:
            connectionId: con_xxxxxxxxxxxxx
    

    Using getConnectionDirectory

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getConnectionDirectory(args: GetConnectionDirectoryArgs, opts?: InvokeOptions): Promise<GetConnectionDirectoryResult>
    function getConnectionDirectoryOutput(args: GetConnectionDirectoryOutputArgs, opts?: InvokeOptions): Output<GetConnectionDirectoryResult>
    def get_connection_directory(connection_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetConnectionDirectoryResult
    def get_connection_directory_output(connection_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetConnectionDirectoryResult]
    func LookupConnectionDirectory(ctx *Context, args *LookupConnectionDirectoryArgs, opts ...InvokeOption) (*LookupConnectionDirectoryResult, error)
    func LookupConnectionDirectoryOutput(ctx *Context, args *LookupConnectionDirectoryOutputArgs, opts ...InvokeOption) LookupConnectionDirectoryResultOutput

    > Note: This function is named LookupConnectionDirectory in the Go SDK.

    public static class GetConnectionDirectory 
    {
        public static Task<GetConnectionDirectoryResult> InvokeAsync(GetConnectionDirectoryArgs args, InvokeOptions? opts = null)
        public static Output<GetConnectionDirectoryResult> Invoke(GetConnectionDirectoryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetConnectionDirectoryResult> getConnectionDirectory(GetConnectionDirectoryArgs args, InvokeOptions options)
    public static Output<GetConnectionDirectoryResult> getConnectionDirectory(GetConnectionDirectoryArgs args, InvokeOptions options)
    
    fn::invoke:
      function: auth0:index/getConnectionDirectory:getConnectionDirectory
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ConnectionId string
    ID of the connection for this directory provisioning configuration.
    ConnectionId string
    ID of the connection for this directory provisioning configuration.
    connectionId String
    ID of the connection for this directory provisioning configuration.
    connectionId string
    ID of the connection for this directory provisioning configuration.
    connection_id str
    ID of the connection for this directory provisioning configuration.
    connectionId String
    ID of the connection for this directory provisioning configuration.

    getConnectionDirectory Result

    The following output properties are available:

    ConnectionId string
    ID of the connection for this directory provisioning configuration.
    ConnectionName string
    Name of the connection for this directory provisioning configuration.
    CreatedAt string
    The timestamp at which the directory provisioning configuration was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastSynchronizationAt string
    The timestamp at which the connection was last synchronized.
    LastSynchronizationError string
    The error message of the last synchronization, if any.
    LastSynchronizationStatus string
    The status of the last synchronization.
    Mappings List<GetConnectionDirectoryMapping>
    Mapping between Auth0 attributes and IDP user attributes. Defaults to default mapping for the connection type if not specified.
    Strategy string
    Strategy of the connection for this directory provisioning configuration.
    SynchronizeAutomatically bool
    Whether periodic automatic synchronization is enabled. Defaults to false.
    UpdatedAt string
    The timestamp at which the directory provisioning configuration was last updated.
    ConnectionId string
    ID of the connection for this directory provisioning configuration.
    ConnectionName string
    Name of the connection for this directory provisioning configuration.
    CreatedAt string
    The timestamp at which the directory provisioning configuration was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastSynchronizationAt string
    The timestamp at which the connection was last synchronized.
    LastSynchronizationError string
    The error message of the last synchronization, if any.
    LastSynchronizationStatus string
    The status of the last synchronization.
    Mappings []GetConnectionDirectoryMapping
    Mapping between Auth0 attributes and IDP user attributes. Defaults to default mapping for the connection type if not specified.
    Strategy string
    Strategy of the connection for this directory provisioning configuration.
    SynchronizeAutomatically bool
    Whether periodic automatic synchronization is enabled. Defaults to false.
    UpdatedAt string
    The timestamp at which the directory provisioning configuration was last updated.
    connectionId String
    ID of the connection for this directory provisioning configuration.
    connectionName String
    Name of the connection for this directory provisioning configuration.
    createdAt String
    The timestamp at which the directory provisioning configuration was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastSynchronizationAt String
    The timestamp at which the connection was last synchronized.
    lastSynchronizationError String
    The error message of the last synchronization, if any.
    lastSynchronizationStatus String
    The status of the last synchronization.
    mappings List<GetConnectionDirectoryMapping>
    Mapping between Auth0 attributes and IDP user attributes. Defaults to default mapping for the connection type if not specified.
    strategy String
    Strategy of the connection for this directory provisioning configuration.
    synchronizeAutomatically Boolean
    Whether periodic automatic synchronization is enabled. Defaults to false.
    updatedAt String
    The timestamp at which the directory provisioning configuration was last updated.
    connectionId string
    ID of the connection for this directory provisioning configuration.
    connectionName string
    Name of the connection for this directory provisioning configuration.
    createdAt string
    The timestamp at which the directory provisioning configuration was created.
    id string
    The provider-assigned unique ID for this managed resource.
    lastSynchronizationAt string
    The timestamp at which the connection was last synchronized.
    lastSynchronizationError string
    The error message of the last synchronization, if any.
    lastSynchronizationStatus string
    The status of the last synchronization.
    mappings GetConnectionDirectoryMapping[]
    Mapping between Auth0 attributes and IDP user attributes. Defaults to default mapping for the connection type if not specified.
    strategy string
    Strategy of the connection for this directory provisioning configuration.
    synchronizeAutomatically boolean
    Whether periodic automatic synchronization is enabled. Defaults to false.
    updatedAt string
    The timestamp at which the directory provisioning configuration was last updated.
    connection_id str
    ID of the connection for this directory provisioning configuration.
    connection_name str
    Name of the connection for this directory provisioning configuration.
    created_at str
    The timestamp at which the directory provisioning configuration was created.
    id str
    The provider-assigned unique ID for this managed resource.
    last_synchronization_at str
    The timestamp at which the connection was last synchronized.
    last_synchronization_error str
    The error message of the last synchronization, if any.
    last_synchronization_status str
    The status of the last synchronization.
    mappings Sequence[GetConnectionDirectoryMapping]
    Mapping between Auth0 attributes and IDP user attributes. Defaults to default mapping for the connection type if not specified.
    strategy str
    Strategy of the connection for this directory provisioning configuration.
    synchronize_automatically bool
    Whether periodic automatic synchronization is enabled. Defaults to false.
    updated_at str
    The timestamp at which the directory provisioning configuration was last updated.
    connectionId String
    ID of the connection for this directory provisioning configuration.
    connectionName String
    Name of the connection for this directory provisioning configuration.
    createdAt String
    The timestamp at which the directory provisioning configuration was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastSynchronizationAt String
    The timestamp at which the connection was last synchronized.
    lastSynchronizationError String
    The error message of the last synchronization, if any.
    lastSynchronizationStatus String
    The status of the last synchronization.
    mappings List<Property Map>
    Mapping between Auth0 attributes and IDP user attributes. Defaults to default mapping for the connection type if not specified.
    strategy String
    Strategy of the connection for this directory provisioning configuration.
    synchronizeAutomatically Boolean
    Whether periodic automatic synchronization is enabled. Defaults to false.
    updatedAt String
    The timestamp at which the directory provisioning configuration was last updated.

    Supporting Types

    GetConnectionDirectoryMapping

    Auth0 string
    The field location in the Auth0 schema.
    Idp string
    The field location in the IDP schema.
    Auth0 string
    The field location in the Auth0 schema.
    Idp string
    The field location in the IDP schema.
    auth0 String
    The field location in the Auth0 schema.
    idp String
    The field location in the IDP schema.
    auth0 string
    The field location in the Auth0 schema.
    idp string
    The field location in the IDP schema.
    auth0 str
    The field location in the Auth0 schema.
    idp str
    The field location in the IDP schema.
    auth0 String
    The field location in the Auth0 schema.
    idp String
    The field location in the IDP schema.

    Package Details

    Repository
    Auth0 pulumi/pulumi-auth0
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the auth0 Terraform Provider.
    auth0 logo
    Auth0 v3.35.0 published on Tuesday, Dec 23, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate