1. Registry
  2. Packages
  3. Auth0 Provider
  4. API Docs
  5. getOrganizations
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 all organizations of the tenant. Optionally set includeClientAssociationFor to also return each organization’s entitlement to a given client (application).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as auth0 from "@pulumi/auth0";
    
    // An empty data source block retrieves every organization of the tenant.
    const myOrganizations = auth0.getOrganizations({});
    // Setting include_client_association_for additionally returns, for every organization
    // associated with that client (application), the details of the association.
    const myOrganizationsWithClientAssociation = auth0.getOrganizations({
        includeClientAssociationFor: "AaiyAPdpYdesoKnqjj8HJqRn4T5titww",
    });
    
    import pulumi
    import pulumi_auth0 as auth0
    
    # An empty data source block retrieves every organization of the tenant.
    my_organizations = auth0.get_organizations()
    # Setting include_client_association_for additionally returns, for every organization
    # associated with that client (application), the details of the association.
    my_organizations_with_client_association = auth0.get_organizations(include_client_association_for="AaiyAPdpYdesoKnqjj8HJqRn4T5titww")
    
    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 {
    		// An empty data source block retrieves every organization of the tenant.
    		_, err := auth0.GetOrganizations(ctx, &auth0.GetOrganizationsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		// Setting include_client_association_for additionally returns, for every organization
    		// associated with that client (application), the details of the association.
    		_, err = auth0.GetOrganizations(ctx, &auth0.GetOrganizationsArgs{
    			IncludeClientAssociationFor: pulumi.StringRef("AaiyAPdpYdesoKnqjj8HJqRn4T5titww"),
    		}, 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(() => 
    {
        // An empty data source block retrieves every organization of the tenant.
        var myOrganizations = Auth0.GetOrganizations.Invoke();
    
        // Setting include_client_association_for additionally returns, for every organization
        // associated with that client (application), the details of the association.
        var myOrganizationsWithClientAssociation = Auth0.GetOrganizations.Invoke(new()
        {
            IncludeClientAssociationFor = "AaiyAPdpYdesoKnqjj8HJqRn4T5titww",
        });
    
    });
    
    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.GetOrganizationsArgs;
    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) {
            // An empty data source block retrieves every organization of the tenant.
            final var myOrganizations = Auth0Functions.getOrganizations(GetOrganizationsArgs.builder()
                .build());
    
            // Setting include_client_association_for additionally returns, for every organization
            // associated with that client (application), the details of the association.
            final var myOrganizationsWithClientAssociation = Auth0Functions.getOrganizations(GetOrganizationsArgs.builder()
                .includeClientAssociationFor("AaiyAPdpYdesoKnqjj8HJqRn4T5titww")
                .build());
    
        }
    }
    
    variables:
      # An empty data source block retrieves every organization of the tenant.
      myOrganizations:
        fn::invoke:
          function: auth0:getOrganizations
          arguments: {}
      # Setting include_client_association_for additionally returns, for every organization
      # associated with that client (application), the details of the association.
      myOrganizationsWithClientAssociation:
        fn::invoke:
          function: auth0:getOrganizations
          arguments:
            includeClientAssociationFor: AaiyAPdpYdesoKnqjj8HJqRn4T5titww
    
    pulumi {
      required_providers {
        auth0 = {
          source = "pulumi/auth0"
        }
      }
    }
    
    data "auth0_getorganizations" "myOrganizations" {
    }
    data "auth0_getorganizations" "myOrganizationsWithClientAssociation" {
      include_client_association_for = "AaiyAPdpYdesoKnqjj8HJqRn4T5titww"
    }
    
    # An empty data source block retrieves every organization of the tenant.
    # Setting include_client_association_for additionally returns, for every organization
    # associated with that client (application), the details of the association.
    

    Using getOrganizations

    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 getOrganizations(args: GetOrganizationsArgs, opts?: InvokeOptions): Promise<GetOrganizationsResult>
    function getOrganizationsOutput(args: GetOrganizationsOutputArgs, opts?: InvokeOutputOptions): Output<GetOrganizationsResult>
    def get_organizations(include_client_association_for: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetOrganizationsResult
    def get_organizations_output(include_client_association_for: pulumi.Input[Optional[str]] = None,
                          opts: Optional[InvokeOutputOptions] = None) -> Output[GetOrganizationsResult]
    func GetOrganizations(ctx *Context, args *GetOrganizationsArgs, opts ...InvokeOption) (*GetOrganizationsResult, error)
    func GetOrganizationsOutput(ctx *Context, args *GetOrganizationsOutputArgs, opts ...InvokeOption) GetOrganizationsResultOutput

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

    public static class GetOrganizations 
    {
        public static Task<GetOrganizationsResult> InvokeAsync(GetOrganizationsArgs args, InvokeOptions? opts = null)
        public static Output<GetOrganizationsResult> Invoke(GetOrganizationsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetOrganizationsResult> Invoke(GetOrganizationsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetOrganizationsResult> getOrganizations(GetOrganizationsArgs args, InvokeOptions options)
    public static Output<GetOrganizationsResult> getOrganizations(GetOrganizationsArgs args, InvokeOptions options)
    public static Output<GetOrganizationsResult> getOrganizations(GetOrganizationsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: auth0:index/getOrganizations:getOrganizations
      arguments:
        # arguments dictionary
    data "auth0_get_organizations" "name" {
        # arguments
    }

    The following arguments are supported:

    IncludeClientAssociationFor string
    The ID of a client (application). When set, every returned organization that is associated with this client gains a client block describing that association (EA only).
    IncludeClientAssociationFor string
    The ID of a client (application). When set, every returned organization that is associated with this client gains a client block describing that association (EA only).
    include_client_association_for string
    The ID of a client (application). When set, every returned organization that is associated with this client gains a client block describing that association (EA only).
    includeClientAssociationFor String
    The ID of a client (application). When set, every returned organization that is associated with this client gains a client block describing that association (EA only).
    includeClientAssociationFor string
    The ID of a client (application). When set, every returned organization that is associated with this client gains a client block describing that association (EA only).
    include_client_association_for str
    The ID of a client (application). When set, every returned organization that is associated with this client gains a client block describing that association (EA only).
    includeClientAssociationFor String
    The ID of a client (application). When set, every returned organization that is associated with this client gains a client block describing that association (EA only).

    getOrganizations Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Organizations List<GetOrganizationsOrganization>
    The list of organizations of the tenant.
    IncludeClientAssociationFor string
    The ID of a client (application). When set, every returned organization that is associated with this client gains a client block describing that association (EA only).
    Id string
    The provider-assigned unique ID for this managed resource.
    Organizations []GetOrganizationsOrganization
    The list of organizations of the tenant.
    IncludeClientAssociationFor string
    The ID of a client (application). When set, every returned organization that is associated with this client gains a client block describing that association (EA only).
    id string
    The provider-assigned unique ID for this managed resource.
    organizations list(object)
    The list of organizations of the tenant.
    include_client_association_for string
    The ID of a client (application). When set, every returned organization that is associated with this client gains a client block describing that association (EA only).
    id String
    The provider-assigned unique ID for this managed resource.
    organizations List<GetOrganizationsOrganization>
    The list of organizations of the tenant.
    includeClientAssociationFor String
    The ID of a client (application). When set, every returned organization that is associated with this client gains a client block describing that association (EA only).
    id string
    The provider-assigned unique ID for this managed resource.
    organizations GetOrganizationsOrganization[]
    The list of organizations of the tenant.
    includeClientAssociationFor string
    The ID of a client (application). When set, every returned organization that is associated with this client gains a client block describing that association (EA only).
    id str
    The provider-assigned unique ID for this managed resource.
    organizations Sequence[GetOrganizationsOrganization]
    The list of organizations of the tenant.
    include_client_association_for str
    The ID of a client (application). When set, every returned organization that is associated with this client gains a client block describing that association (EA only).
    id String
    The provider-assigned unique ID for this managed resource.
    organizations List<Property Map>
    The list of organizations of the tenant.
    includeClientAssociationFor String
    The ID of a client (application). When set, every returned organization that is associated with this client gains a client block describing that association (EA only).

    Supporting Types

    GetOrganizationsOrganization

    Brandings List<GetOrganizationsOrganizationBranding>
    How to style the login pages for this organization.
    Clients List<GetOrganizationsOrganizationClient>
    The organization's association with the client passed as includeClientAssociationFor. Empty for organizations that have no association with that client (EA only).
    DisplayName string
    Friendly name of the organization.
    IsAppEntitlementActive bool
    Whether this organization's app entitlement is active (EA only).
    Metadata Dictionary<string, string>
    Metadata associated with the organization.
    Name string
    The name of the organization.
    OrganizationId string
    The ID of the organization.
    ThirdPartyClientAccess string
    Controls whether this organization can be used in user flows with third-party clients. Available values are allow or block.
    TokenQuotas List<GetOrganizationsOrganizationTokenQuota>
    The token quota configuration for this organization.
    Brandings []GetOrganizationsOrganizationBranding
    How to style the login pages for this organization.
    Clients []GetOrganizationsOrganizationClient
    The organization's association with the client passed as includeClientAssociationFor. Empty for organizations that have no association with that client (EA only).
    DisplayName string
    Friendly name of the organization.
    IsAppEntitlementActive bool
    Whether this organization's app entitlement is active (EA only).
    Metadata map[string]string
    Metadata associated with the organization.
    Name string
    The name of the organization.
    OrganizationId string
    The ID of the organization.
    ThirdPartyClientAccess string
    Controls whether this organization can be used in user flows with third-party clients. Available values are allow or block.
    TokenQuotas []GetOrganizationsOrganizationTokenQuota
    The token quota configuration for this organization.
    brandings list(object)
    How to style the login pages for this organization.
    clients list(object)
    The organization's association with the client passed as includeClientAssociationFor. Empty for organizations that have no association with that client (EA only).
    display_name string
    Friendly name of the organization.
    is_app_entitlement_active bool
    Whether this organization's app entitlement is active (EA only).
    metadata map(string)
    Metadata associated with the organization.
    name string
    The name of the organization.
    organization_id string
    The ID of the organization.
    third_party_client_access string
    Controls whether this organization can be used in user flows with third-party clients. Available values are allow or block.
    token_quotas list(object)
    The token quota configuration for this organization.
    brandings List<GetOrganizationsOrganizationBranding>
    How to style the login pages for this organization.
    clients List<GetOrganizationsOrganizationClient>
    The organization's association with the client passed as includeClientAssociationFor. Empty for organizations that have no association with that client (EA only).
    displayName String
    Friendly name of the organization.
    isAppEntitlementActive Boolean
    Whether this organization's app entitlement is active (EA only).
    metadata Map<String,String>
    Metadata associated with the organization.
    name String
    The name of the organization.
    organizationId String
    The ID of the organization.
    thirdPartyClientAccess String
    Controls whether this organization can be used in user flows with third-party clients. Available values are allow or block.
    tokenQuotas List<GetOrganizationsOrganizationTokenQuota>
    The token quota configuration for this organization.
    brandings GetOrganizationsOrganizationBranding[]
    How to style the login pages for this organization.
    clients GetOrganizationsOrganizationClient[]
    The organization's association with the client passed as includeClientAssociationFor. Empty for organizations that have no association with that client (EA only).
    displayName string
    Friendly name of the organization.
    isAppEntitlementActive boolean
    Whether this organization's app entitlement is active (EA only).
    metadata {[key: string]: string}
    Metadata associated with the organization.
    name string
    The name of the organization.
    organizationId string
    The ID of the organization.
    thirdPartyClientAccess string
    Controls whether this organization can be used in user flows with third-party clients. Available values are allow or block.
    tokenQuotas GetOrganizationsOrganizationTokenQuota[]
    The token quota configuration for this organization.
    brandings Sequence[GetOrganizationsOrganizationBranding]
    How to style the login pages for this organization.
    clients Sequence[GetOrganizationsOrganizationClient]
    The organization's association with the client passed as includeClientAssociationFor. Empty for organizations that have no association with that client (EA only).
    display_name str
    Friendly name of the organization.
    is_app_entitlement_active bool
    Whether this organization's app entitlement is active (EA only).
    metadata Mapping[str, str]
    Metadata associated with the organization.
    name str
    The name of the organization.
    organization_id str
    The ID of the organization.
    third_party_client_access str
    Controls whether this organization can be used in user flows with third-party clients. Available values are allow or block.
    token_quotas Sequence[GetOrganizationsOrganizationTokenQuota]
    The token quota configuration for this organization.
    brandings List<Property Map>
    How to style the login pages for this organization.
    clients List<Property Map>
    The organization's association with the client passed as includeClientAssociationFor. Empty for organizations that have no association with that client (EA only).
    displayName String
    Friendly name of the organization.
    isAppEntitlementActive Boolean
    Whether this organization's app entitlement is active (EA only).
    metadata Map<String>
    Metadata associated with the organization.
    name String
    The name of the organization.
    organizationId String
    The ID of the organization.
    thirdPartyClientAccess String
    Controls whether this organization can be used in user flows with third-party clients. Available values are allow or block.
    tokenQuotas List<Property Map>
    The token quota configuration for this organization.

    GetOrganizationsOrganizationBranding

    Colors Dictionary<string, string>
    Color scheme used to customize the login pages.
    LogoUrl string
    URL of logo to display on login page.
    Colors map[string]string
    Color scheme used to customize the login pages.
    LogoUrl string
    URL of logo to display on login page.
    colors map(string)
    Color scheme used to customize the login pages.
    logo_url string
    URL of logo to display on login page.
    colors Map<String,String>
    Color scheme used to customize the login pages.
    logoUrl String
    URL of logo to display on login page.
    colors {[key: string]: string}
    Color scheme used to customize the login pages.
    logoUrl string
    URL of logo to display on login page.
    colors Mapping[str, str]
    Color scheme used to customize the login pages.
    logo_url str
    URL of logo to display on login page.
    colors Map<String>
    Color scheme used to customize the login pages.
    logoUrl String
    URL of logo to display on login page.

    GetOrganizationsOrganizationClient

    UseForMemberAccess bool
    Whether organization members can log in via this client.
    UseForMemberAccess bool
    Whether organization members can log in via this client.
    use_for_member_access bool
    Whether organization members can log in via this client.
    useForMemberAccess Boolean
    Whether organization members can log in via this client.
    useForMemberAccess boolean
    Whether organization members can log in via this client.
    use_for_member_access bool
    Whether organization members can log in via this client.
    useForMemberAccess Boolean
    Whether organization members can log in via this client.

    GetOrganizationsOrganizationTokenQuota

    ClientCredentials List<GetOrganizationsOrganizationTokenQuotaClientCredential>
    The token quota configuration for client credentials.
    ClientCredentials []GetOrganizationsOrganizationTokenQuotaClientCredential
    The token quota configuration for client credentials.
    client_credentials list(object)
    The token quota configuration for client credentials.
    clientCredentials List<GetOrganizationsOrganizationTokenQuotaClientCredential>
    The token quota configuration for client credentials.
    clientCredentials GetOrganizationsOrganizationTokenQuotaClientCredential[]
    The token quota configuration for client credentials.
    clientCredentials List<Property Map>
    The token quota configuration for client credentials.

    GetOrganizationsOrganizationTokenQuotaClientCredential

    Enforce bool
    Whether the quota is enforced.
    PerDay int
    Maximum number of issued tokens per day.
    PerHour int
    Maximum number of issued tokens per hour.
    Enforce bool
    Whether the quota is enforced.
    PerDay int
    Maximum number of issued tokens per day.
    PerHour int
    Maximum number of issued tokens per hour.
    enforce bool
    Whether the quota is enforced.
    per_day number
    Maximum number of issued tokens per day.
    per_hour number
    Maximum number of issued tokens per hour.
    enforce Boolean
    Whether the quota is enforced.
    perDay Integer
    Maximum number of issued tokens per day.
    perHour Integer
    Maximum number of issued tokens per hour.
    enforce boolean
    Whether the quota is enforced.
    perDay number
    Maximum number of issued tokens per day.
    perHour number
    Maximum number of issued tokens per hour.
    enforce bool
    Whether the quota is enforced.
    per_day int
    Maximum number of issued tokens per day.
    per_hour int
    Maximum number of issued tokens per hour.
    enforce Boolean
    Whether the quota is enforced.
    perDay Number
    Maximum number of issued tokens per day.
    perHour Number
    Maximum number of issued tokens per hour.

    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