1. Packages
  2. Auth0 Provider
  3. API Docs
  4. getClientGrants
Auth0 v3.31.0 published on Saturday, Nov 1, 2025 by Pulumi

auth0.getClientGrants

Get Started
auth0 logo
Auth0 v3.31.0 published on Saturday, Nov 1, 2025 by Pulumi

    Data source to retrieve a client grants based on client_id and/or audience

    Using getClientGrants

    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 getClientGrants(args: GetClientGrantsArgs, opts?: InvokeOptions): Promise<GetClientGrantsResult>
    function getClientGrantsOutput(args: GetClientGrantsOutputArgs, opts?: InvokeOptions): Output<GetClientGrantsResult>
    def get_client_grants(audience: Optional[str] = None,
                          client_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetClientGrantsResult
    def get_client_grants_output(audience: Optional[pulumi.Input[str]] = None,
                          client_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetClientGrantsResult]
    func GetClientGrants(ctx *Context, args *GetClientGrantsArgs, opts ...InvokeOption) (*GetClientGrantsResult, error)
    func GetClientGrantsOutput(ctx *Context, args *GetClientGrantsOutputArgs, opts ...InvokeOption) GetClientGrantsResultOutput

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

    public static class GetClientGrants 
    {
        public static Task<GetClientGrantsResult> InvokeAsync(GetClientGrantsArgs args, InvokeOptions? opts = null)
        public static Output<GetClientGrantsResult> Invoke(GetClientGrantsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetClientGrantsResult> getClientGrants(GetClientGrantsArgs args, InvokeOptions options)
    public static Output<GetClientGrantsResult> getClientGrants(GetClientGrantsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: auth0:index/getClientGrants:getClientGrants
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Audience string
    The audience to filter by.
    ClientId string
    The ID of the client to filter by.
    Audience string
    The audience to filter by.
    ClientId string
    The ID of the client to filter by.
    audience String
    The audience to filter by.
    clientId String
    The ID of the client to filter by.
    audience string
    The audience to filter by.
    clientId string
    The ID of the client to filter by.
    audience str
    The audience to filter by.
    client_id str
    The ID of the client to filter by.
    audience String
    The audience to filter by.
    clientId String
    The ID of the client to filter by.

    getClientGrants Result

    The following output properties are available:

    ClientGrants List<GetClientGrantsClientGrant>
    List of client grants matching the criteria.
    Id string
    The provider-assigned unique ID for this managed resource.
    Audience string
    The audience to filter by.
    ClientId string
    The ID of the client to filter by.
    ClientGrants []GetClientGrantsClientGrant
    List of client grants matching the criteria.
    Id string
    The provider-assigned unique ID for this managed resource.
    Audience string
    The audience to filter by.
    ClientId string
    The ID of the client to filter by.
    clientGrants List<GetClientGrantsClientGrant>
    List of client grants matching the criteria.
    id String
    The provider-assigned unique ID for this managed resource.
    audience String
    The audience to filter by.
    clientId String
    The ID of the client to filter by.
    clientGrants GetClientGrantsClientGrant[]
    List of client grants matching the criteria.
    id string
    The provider-assigned unique ID for this managed resource.
    audience string
    The audience to filter by.
    clientId string
    The ID of the client to filter by.
    client_grants Sequence[GetClientGrantsClientGrant]
    List of client grants matching the criteria.
    id str
    The provider-assigned unique ID for this managed resource.
    audience str
    The audience to filter by.
    client_id str
    The ID of the client to filter by.
    clientGrants List<Property Map>
    List of client grants matching the criteria.
    id String
    The provider-assigned unique ID for this managed resource.
    audience String
    The audience to filter by.
    clientId String
    The ID of the client to filter by.

    Supporting Types

    GetClientGrantsClientGrant

    Audience string
    The audience of the client grant.
    ClientId string
    The client ID associated with the grant.
    Id string
    The ID of the client grant.
    Scopes List<string>
    List of granted scopes.
    SubjectType string
    The subject type (usually 'client').
    Audience string
    The audience of the client grant.
    ClientId string
    The client ID associated with the grant.
    Id string
    The ID of the client grant.
    Scopes []string
    List of granted scopes.
    SubjectType string
    The subject type (usually 'client').
    audience String
    The audience of the client grant.
    clientId String
    The client ID associated with the grant.
    id String
    The ID of the client grant.
    scopes List<String>
    List of granted scopes.
    subjectType String
    The subject type (usually 'client').
    audience string
    The audience of the client grant.
    clientId string
    The client ID associated with the grant.
    id string
    The ID of the client grant.
    scopes string[]
    List of granted scopes.
    subjectType string
    The subject type (usually 'client').
    audience str
    The audience of the client grant.
    client_id str
    The client ID associated with the grant.
    id str
    The ID of the client grant.
    scopes Sequence[str]
    List of granted scopes.
    subject_type str
    The subject type (usually 'client').
    audience String
    The audience of the client grant.
    clientId String
    The client ID associated with the grant.
    id String
    The ID of the client grant.
    scopes List<String>
    List of granted scopes.
    subjectType String
    The subject type (usually 'client').

    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.31.0 published on Saturday, Nov 1, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate