1. Registry
  2. Packages
  3. Auth0 Provider
  4. API Docs
  5. getOrganizationClient
Viewing docs for Auth0 v3.51.0
published on Tuesday, Aug 18, 2026 by Pulumi
auth0 logo auth0 logo
Viewing docs for Auth0 v3.51.0
published on Tuesday, Aug 18, 2026 by Pulumi

    Data source to retrieve a specific client (application) association for an organization, by organizationId and clientId (EA only).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as auth0 from "@pulumi/auth0";
    
    const myOrgClient = auth0.getOrganizationClient({
        organizationId: "org_XXXXX",
        clientId: "clientXXXXX",
    });
    
    import pulumi
    import pulumi_auth0 as auth0
    
    my_org_client = auth0.get_organization_client(organization_id="org_XXXXX",
        client_id="clientXXXXX")
    
    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.GetOrganizationClient(ctx, &auth0.LookupOrganizationClientArgs{
    			OrganizationId: "org_XXXXX",
    			ClientId:       "clientXXXXX",
    		}, 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 myOrgClient = Auth0.GetOrganizationClient.Invoke(new()
        {
            OrganizationId = "org_XXXXX",
            ClientId = "clientXXXXX",
        });
    
    });
    
    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.GetOrganizationClientArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 myOrgClient = Auth0Functions.getOrganizationClient(GetOrganizationClientArgs.builder()
                .organizationId("org_XXXXX")
                .clientId("clientXXXXX")
                .build());
    
        }
    }
    
    variables:
      myOrgClient:
        fn::invoke:
          function: auth0:getOrganizationClient
          arguments:
            organizationId: org_XXXXX
            clientId: clientXXXXX
    
    pulumi {
      required_providers {
        auth0 = {
          source = "pulumi/auth0"
        }
      }
    }
    
    data "auth0_getorganizationclient" "myOrgClient" {
      organization_id = "org_XXXXX"
      client_id       = "clientXXXXX"
    }
    

    Using getOrganizationClient

    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 getOrganizationClient(args: GetOrganizationClientArgs, opts?: InvokeOptions): Promise<GetOrganizationClientResult>
    function getOrganizationClientOutput(args: GetOrganizationClientOutputArgs, opts?: InvokeOutputOptions): Output<GetOrganizationClientResult>
    def get_organization_client(client_id: Optional[str] = None,
                                organization_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetOrganizationClientResult
    def get_organization_client_output(client_id: pulumi.Input[Optional[str]] = None,
                                organization_id: pulumi.Input[Optional[str]] = None,
                                opts: Optional[InvokeOutputOptions] = None) -> Output[GetOrganizationClientResult]
    func LookupOrganizationClient(ctx *Context, args *LookupOrganizationClientArgs, opts ...InvokeOption) (*LookupOrganizationClientResult, error)
    func LookupOrganizationClientOutput(ctx *Context, args *LookupOrganizationClientOutputArgs, opts ...InvokeOption) LookupOrganizationClientResultOutput

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

    public static class GetOrganizationClient 
    {
        public static Task<GetOrganizationClientResult> InvokeAsync(GetOrganizationClientArgs args, InvokeOptions? opts = null)
        public static Output<GetOrganizationClientResult> Invoke(GetOrganizationClientInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetOrganizationClientResult> Invoke(GetOrganizationClientInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetOrganizationClientResult> getOrganizationClient(GetOrganizationClientArgs args, InvokeOptions options)
    public static Output<GetOrganizationClientResult> getOrganizationClient(GetOrganizationClientArgs args, InvokeOptions options)
    public static Output<GetOrganizationClientResult> getOrganizationClient(GetOrganizationClientArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: auth0:index/getOrganizationClient:getOrganizationClient
      arguments:
        # arguments dictionary
    data "auth0_get_organization_client" "name" {
        # arguments
    }

    The following arguments are supported:

    ClientId string
    The ID of the client (application) to associate with the organization.
    OrganizationId string
    The ID of the organization to associate the client (application) with.
    ClientId string
    The ID of the client (application) to associate with the organization.
    OrganizationId string
    The ID of the organization to associate the client (application) with.
    client_id string
    The ID of the client (application) to associate with the organization.
    organization_id string
    The ID of the organization to associate the client (application) with.
    clientId String
    The ID of the client (application) to associate with the organization.
    organizationId String
    The ID of the organization to associate the client (application) with.
    clientId string
    The ID of the client (application) to associate with the organization.
    organizationId string
    The ID of the organization to associate the client (application) with.
    client_id str
    The ID of the client (application) to associate with the organization.
    organization_id str
    The ID of the organization to associate the client (application) with.
    clientId String
    The ID of the client (application) to associate with the organization.
    organizationId String
    The ID of the organization to associate the client (application) with.

    getOrganizationClient Result

    The following output properties are available:

    AppType string
    The type of the associated client application.
    ClientId string
    The ID of the client (application) to associate with the organization.
    GrantTypes List<string>
    The grant types enabled for the associated client.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsFirstParty bool
    Whether the associated client is a first-party client (true) or not (false).
    LogoUri string
    The URI of the associated client's logo.
    Name string
    The name of the associated client.
    OrganizationId string
    The ID of the organization to associate the client (application) with.
    OrganizationUsage string
    How the associated client handles organizations during authentication. Available values are deny, allow or require. This is a read-only reflection of the client's own organizationUsage setting and is managed on the auth0.Client resource, not here.
    UseForMemberAccess bool
    Whether this client is used for member access to the organization. An association starts out with this turned off and it has to be activated explicitly.
    AppType string
    The type of the associated client application.
    ClientId string
    The ID of the client (application) to associate with the organization.
    GrantTypes []string
    The grant types enabled for the associated client.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsFirstParty bool
    Whether the associated client is a first-party client (true) or not (false).
    LogoUri string
    The URI of the associated client's logo.
    Name string
    The name of the associated client.
    OrganizationId string
    The ID of the organization to associate the client (application) with.
    OrganizationUsage string
    How the associated client handles organizations during authentication. Available values are deny, allow or require. This is a read-only reflection of the client's own organizationUsage setting and is managed on the auth0.Client resource, not here.
    UseForMemberAccess bool
    Whether this client is used for member access to the organization. An association starts out with this turned off and it has to be activated explicitly.
    app_type string
    The type of the associated client application.
    client_id string
    The ID of the client (application) to associate with the organization.
    grant_types list(string)
    The grant types enabled for the associated client.
    id string
    The provider-assigned unique ID for this managed resource.
    is_first_party bool
    Whether the associated client is a first-party client (true) or not (false).
    logo_uri string
    The URI of the associated client's logo.
    name string
    The name of the associated client.
    organization_id string
    The ID of the organization to associate the client (application) with.
    organization_usage string
    How the associated client handles organizations during authentication. Available values are deny, allow or require. This is a read-only reflection of the client's own organizationUsage setting and is managed on the auth0.Client resource, not here.
    use_for_member_access bool
    Whether this client is used for member access to the organization. An association starts out with this turned off and it has to be activated explicitly.
    appType String
    The type of the associated client application.
    clientId String
    The ID of the client (application) to associate with the organization.
    grantTypes List<String>
    The grant types enabled for the associated client.
    id String
    The provider-assigned unique ID for this managed resource.
    isFirstParty Boolean
    Whether the associated client is a first-party client (true) or not (false).
    logoUri String
    The URI of the associated client's logo.
    name String
    The name of the associated client.
    organizationId String
    The ID of the organization to associate the client (application) with.
    organizationUsage String
    How the associated client handles organizations during authentication. Available values are deny, allow or require. This is a read-only reflection of the client's own organizationUsage setting and is managed on the auth0.Client resource, not here.
    useForMemberAccess Boolean
    Whether this client is used for member access to the organization. An association starts out with this turned off and it has to be activated explicitly.
    appType string
    The type of the associated client application.
    clientId string
    The ID of the client (application) to associate with the organization.
    grantTypes string[]
    The grant types enabled for the associated client.
    id string
    The provider-assigned unique ID for this managed resource.
    isFirstParty boolean
    Whether the associated client is a first-party client (true) or not (false).
    logoUri string
    The URI of the associated client's logo.
    name string
    The name of the associated client.
    organizationId string
    The ID of the organization to associate the client (application) with.
    organizationUsage string
    How the associated client handles organizations during authentication. Available values are deny, allow or require. This is a read-only reflection of the client's own organizationUsage setting and is managed on the auth0.Client resource, not here.
    useForMemberAccess boolean
    Whether this client is used for member access to the organization. An association starts out with this turned off and it has to be activated explicitly.
    app_type str
    The type of the associated client application.
    client_id str
    The ID of the client (application) to associate with the organization.
    grant_types Sequence[str]
    The grant types enabled for the associated client.
    id str
    The provider-assigned unique ID for this managed resource.
    is_first_party bool
    Whether the associated client is a first-party client (true) or not (false).
    logo_uri str
    The URI of the associated client's logo.
    name str
    The name of the associated client.
    organization_id str
    The ID of the organization to associate the client (application) with.
    organization_usage str
    How the associated client handles organizations during authentication. Available values are deny, allow or require. This is a read-only reflection of the client's own organizationUsage setting and is managed on the auth0.Client resource, not here.
    use_for_member_access bool
    Whether this client is used for member access to the organization. An association starts out with this turned off and it has to be activated explicitly.
    appType String
    The type of the associated client application.
    clientId String
    The ID of the client (application) to associate with the organization.
    grantTypes List<String>
    The grant types enabled for the associated client.
    id String
    The provider-assigned unique ID for this managed resource.
    isFirstParty Boolean
    Whether the associated client is a first-party client (true) or not (false).
    logoUri String
    The URI of the associated client's logo.
    name String
    The name of the associated client.
    organizationId String
    The ID of the organization to associate the client (application) with.
    organizationUsage String
    How the associated client handles organizations during authentication. Available values are deny, allow or require. This is a read-only reflection of the client's own organizationUsage setting and is managed on the auth0.Client resource, not here.
    useForMemberAccess Boolean
    Whether this client is used for member access to the organization. An association starts out with this turned off and it has to be activated explicitly.

    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 logo
    Viewing docs for Auth0 v3.51.0
    published on Tuesday, Aug 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial