Viewing docs for Auth0 v3.51.0
published on Tuesday, Aug 18, 2026 by Pulumi
published on Tuesday, Aug 18, 2026 by Pulumi
Viewing docs for Auth0 v3.51.0
published on Tuesday, Aug 18, 2026 by Pulumi
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 dictionarydata "auth0_get_user_organizations" "name" {
# arguments
}The following arguments are supported:
- User
Id 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.
- user_
id 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.
- user
Id 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.
- user
Id 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<Get
User Organizations Organization> - 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
[]Get
User Organizations Organization - 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(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<Get
User Organizations Organization> - 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
Get
User Organizations Organization[] - 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 str
- The provider-assigned unique ID for this managed resource.
- organizations
Sequence[Get
User Organizations Organization] - 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.
- user
Id String - The ID of the user to retrieve the organization memberships for.
Supporting Types
GetUserOrganizationsOrganization
- Brandings
List<Get
User Organizations Organization Branding> - How to style the login pages for this organization.
- Display
Name string - Friendly name of the organization.
- Is
App boolEntitlement Active - 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.
- Organization
Id string - The ID of the organization.
- Third
Party stringClient Access - Controls whether this organization can be used in user flows with third-party clients. Available values are
alloworblock. - Token
Quotas List<GetUser Organizations Organization Token Quota> - The token quota configuration for this organization.
- Brandings
[]Get
User Organizations Organization Branding - How to style the login pages for this organization.
- Display
Name string - Friendly name of the organization.
- Is
App boolEntitlement Active - 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.
- Organization
Id string - The ID of the organization.
- Third
Party stringClient Access - Controls whether this organization can be used in user flows with third-party clients. Available values are
alloworblock. - Token
Quotas []GetUser Organizations Organization Token Quota - 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_ boolentitlement_ active - 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_ stringclient_ access - Controls whether this organization can be used in user flows with third-party clients. Available values are
alloworblock. - token_
quotas list(object) - The token quota configuration for this organization.
- brandings
List<Get
User Organizations Organization Branding> - How to style the login pages for this organization.
- display
Name String - Friendly name of the organization.
- is
App BooleanEntitlement Active - 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.
- organization
Id String - The ID of the organization.
- third
Party StringClient Access - Controls whether this organization can be used in user flows with third-party clients. Available values are
alloworblock. - token
Quotas List<GetUser Organizations Organization Token Quota> - The token quota configuration for this organization.
- brandings
Get
User Organizations Organization Branding[] - How to style the login pages for this organization.
- display
Name string - Friendly name of the organization.
- is
App booleanEntitlement Active - 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.
- organization
Id string - The ID of the organization.
- third
Party stringClient Access - Controls whether this organization can be used in user flows with third-party clients. Available values are
alloworblock. - token
Quotas GetUser Organizations Organization Token Quota[] - The token quota configuration for this organization.
- brandings
Sequence[Get
User Organizations Organization Branding] - How to style the login pages for this organization.
- display_
name str - Friendly name of the organization.
- is_
app_ boolentitlement_ active - 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_ strclient_ access - Controls whether this organization can be used in user flows with third-party clients. Available values are
alloworblock. - token_
quotas Sequence[GetUser Organizations Organization Token Quota] - The token quota configuration for this organization.
- brandings List<Property Map>
- How to style the login pages for this organization.
- display
Name String - Friendly name of the organization.
- is
App BooleanEntitlement Active - 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 StringClient Access - Controls whether this organization can be used in user flows with third-party clients. Available values are
alloworblock. - token
Quotas List<Property Map> - The token quota configuration for this organization.
GetUserOrganizationsOrganizationBranding
GetUserOrganizationsOrganizationTokenQuota
- Client
Credentials List<GetUser Organizations Organization Token Quota Client Credential> - The token quota configuration for client credentials.
- Client
Credentials []GetUser Organizations Organization Token Quota Client Credential - The token quota configuration for client credentials.
- client_
credentials list(object) - The token quota configuration for client credentials.
- client
Credentials List<GetUser Organizations Organization Token Quota Client Credential> - The token quota configuration for client credentials.
- client
Credentials GetUser Organizations Organization Token Quota Client Credential[] - The token quota configuration for client credentials.
- client_
credentials Sequence[GetUser Organizations Organization Token Quota Client Credential] - The token quota configuration for client credentials.
- client
Credentials List<Property Map> - The token quota configuration for client credentials.
GetUserOrganizationsOrganizationTokenQuotaClientCredential
Package Details
- Repository
- Auth0 pulumi/pulumi-auth0
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
auth0Terraform Provider.
Viewing docs for Auth0 v3.51.0
published on Tuesday, Aug 18, 2026 by Pulumi
published on Tuesday, Aug 18, 2026 by Pulumi