1. Registry
  2. Packages
  3. Auth0 Provider
  4. API Docs
  5. getUserOrganizations
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 organization memberships for a specific Auth0 user (EA only).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as auth0 from "@pulumi/auth0";
    
    const myUserOrganizations = auth0.getUserOrganizations({
        userId: "auth0|XXXXX",
    });
    
    import pulumi
    import pulumi_auth0 as auth0
    
    my_user_organizations = auth0.get_user_organizations(user_id="auth0|XXXXX")
    
    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.GetUserOrganizations(ctx, &auth0.GetUserOrganizationsArgs{
    			UserId: "auth0|XXXXX",
    		}, 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 myUserOrganizations = Auth0.GetUserOrganizations.Invoke(new()
        {
            UserId = "auth0|XXXXX",
        });
    
    });
    
    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.GetUserOrganizationsArgs;
    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 myUserOrganizations = Auth0Functions.getUserOrganizations(GetUserOrganizationsArgs.builder()
                .userId("auth0|XXXXX")
                .build());
    
        }
    }
    
    variables:
      myUserOrganizations:
        fn::invoke:
          function: auth0:getUserOrganizations
          arguments:
            userId: auth0|XXXXX
    
    pulumi {
      required_providers {
        auth0 = {
          source = "pulumi/auth0"
        }
      }
    }
    
    data "auth0_getuserorganizations" "myUserOrganizations" {
      user_id = "auth0|XXXXX"
    }
    

    Using getUserOrganizations

    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 getUserOrganizations(args: GetUserOrganizationsArgs, opts?: InvokeOptions): Promise<GetUserOrganizationsResult>
    function getUserOrganizationsOutput(args: GetUserOrganizationsOutputArgs, opts?: InvokeOutputOptions): Output<GetUserOrganizationsResult>
    def get_user_organizations(user_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetUserOrganizationsResult
    def get_user_organizations_output(user_id: pulumi.Input[Optional[str]] = None,
                               opts: Optional[InvokeOutputOptions] = None) -> Output[GetUserOrganizationsResult]
    func GetUserOrganizations(ctx *Context, args *GetUserOrganizationsArgs, opts ...InvokeOption) (*GetUserOrganizationsResult, error)
    func GetUserOrganizationsOutput(ctx *Context, args *GetUserOrganizationsOutputArgs, opts ...InvokeOption) GetUserOrganizationsResultOutput

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

    public static class GetUserOrganizations 
    {
        public static Task<GetUserOrganizationsResult> InvokeAsync(GetUserOrganizationsArgs args, InvokeOptions? opts = null)
        public static Output<GetUserOrganizationsResult> Invoke(GetUserOrganizationsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetUserOrganizationsResult> Invoke(GetUserOrganizationsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetUserOrganizationsResult> getUserOrganizations(GetUserOrganizationsArgs args, InvokeOptions options)
    public static Output<GetUserOrganizationsResult> getUserOrganizations(GetUserOrganizationsArgs args, InvokeOptions options)
    public static Output<GetUserOrganizationsResult> getUserOrganizations(GetUserOrganizationsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: auth0:index/getUserOrganizations:getUserOrganizations
      arguments:
        # arguments dictionary
    data "auth0_get_user_organizations" "name" {
        # arguments
    }

    The following arguments are supported:

    UserId string
    The ID of the user to retrieve the organization memberships for.
    UserId string
    The ID of the user to retrieve the organization memberships for.
    user_id string
    The ID of the user to retrieve the organization memberships for.
    userId String
    The ID of the user to retrieve the organization memberships for.
    userId string
    The ID of the user to retrieve the organization memberships for.
    user_id str
    The ID of the user to retrieve the organization memberships for.
    userId String
    The ID of the user to retrieve the organization memberships for.

    getUserOrganizations Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Organizations List<GetUserOrganizationsOrganization>
    The list of organizations the user is a member of.
    UserId string
    The ID of the user to retrieve the organization memberships for.
    Id string
    The provider-assigned unique ID for this managed resource.
    Organizations []GetUserOrganizationsOrganization
    The list of organizations the user is a member of.
    UserId string
    The ID of the user to retrieve the organization memberships for.
    id string
    The provider-assigned unique ID for this managed resource.
    organizations list(object)
    The list of organizations the user is a member of.
    user_id string
    The ID of the user to retrieve the organization memberships for.
    id String
    The provider-assigned unique ID for this managed resource.
    organizations List<GetUserOrganizationsOrganization>
    The list of organizations the user is a member of.
    userId String
    The ID of the user to retrieve the organization memberships for.
    id string
    The provider-assigned unique ID for this managed resource.
    organizations GetUserOrganizationsOrganization[]
    The list of organizations the user is a member of.
    userId string
    The ID of the user to retrieve the organization memberships for.
    id str
    The provider-assigned unique ID for this managed resource.
    organizations Sequence[GetUserOrganizationsOrganization]
    The list of organizations the user is a member of.
    user_id str
    The ID of the user to retrieve the organization memberships for.
    id String
    The provider-assigned unique ID for this managed resource.
    organizations List<Property Map>
    The list of organizations the user is a member of.
    userId String
    The ID of the user to retrieve the organization memberships for.

    Supporting Types

    GetUserOrganizationsOrganization

    Brandings List<GetUserOrganizationsOrganizationBranding>
    How to style the login pages for this organization.
    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<GetUserOrganizationsOrganizationTokenQuota>
    The token quota configuration for this organization.
    Brandings []GetUserOrganizationsOrganizationBranding
    How to style the login pages for this organization.
    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 []GetUserOrganizationsOrganizationTokenQuota
    The token quota configuration for this organization.
    brandings list(object)
    How to style the login pages for this organization.
    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<GetUserOrganizationsOrganizationBranding>
    How to style the login pages for this organization.
    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<GetUserOrganizationsOrganizationTokenQuota>
    The token quota configuration for this organization.
    brandings GetUserOrganizationsOrganizationBranding[]
    How to style the login pages for this organization.
    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 GetUserOrganizationsOrganizationTokenQuota[]
    The token quota configuration for this organization.
    brandings Sequence[GetUserOrganizationsOrganizationBranding]
    How to style the login pages for this organization.
    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[GetUserOrganizationsOrganizationTokenQuota]
    The token quota configuration for this organization.
    brandings List<Property Map>
    How to style the login pages for this organization.
    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.

    GetUserOrganizationsOrganizationBranding

    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.

    GetUserOrganizationsOrganizationTokenQuota

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

    GetUserOrganizationsOrganizationTokenQuotaClientCredential

    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