1. Registry
  2. Packages
  3. Authentik Provider
  4. API Docs
  5. getPolicyBinding
Viewing docs for authentik 2026.8.0
published on Wednesday, Sep 9, 2026 by goauthentik
Viewing docs for authentik 2026.8.0
published on Wednesday, Sep 9, 2026 by goauthentik

    Get policy bindings by id or target

    Using getPolicyBinding

    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 getPolicyBinding(args: GetPolicyBindingArgs, opts?: InvokeOptions): Promise<GetPolicyBindingResult>
    function getPolicyBindingOutput(args: GetPolicyBindingOutputArgs, opts?: InvokeOutputOptions): Output<GetPolicyBindingResult>
    def get_policy_binding(group: Optional[str] = None,
                           id: Optional[str] = None,
                           order: Optional[float] = None,
                           policy: Optional[str] = None,
                           target: Optional[str] = None,
                           user: Optional[float] = None,
                           opts: Optional[InvokeOptions] = None) -> GetPolicyBindingResult
    def get_policy_binding_output(group: pulumi.Input[Optional[str]] = None,
                           id: pulumi.Input[Optional[str]] = None,
                           order: pulumi.Input[Optional[float]] = None,
                           policy: pulumi.Input[Optional[str]] = None,
                           target: pulumi.Input[Optional[str]] = None,
                           user: pulumi.Input[Optional[float]] = None,
                           opts: Optional[InvokeOutputOptions] = None) -> Output[GetPolicyBindingResult]
    func LookupPolicyBinding(ctx *Context, args *LookupPolicyBindingArgs, opts ...InvokeOption) (*LookupPolicyBindingResult, error)
    func LookupPolicyBindingOutput(ctx *Context, args *LookupPolicyBindingOutputArgs, opts ...InvokeOption) LookupPolicyBindingResultOutput

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

    public static class GetPolicyBinding 
    {
        public static Task<GetPolicyBindingResult> InvokeAsync(GetPolicyBindingArgs args, InvokeOptions? opts = null)
        public static Output<GetPolicyBindingResult> Invoke(GetPolicyBindingInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetPolicyBindingResult> Invoke(GetPolicyBindingInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetPolicyBindingResult> getPolicyBinding(GetPolicyBindingArgs args, InvokeOptions options)
    public static Output<GetPolicyBindingResult> getPolicyBinding(GetPolicyBindingArgs args, InvokeOptions options)
    public static Output<GetPolicyBindingResult> getPolicyBinding(GetPolicyBindingArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: authentik:index/getPolicyBinding:getPolicyBinding
      arguments:
        # arguments dictionary
    data "authentik_get_policy_binding" "name" {
        # arguments
    }

    The following arguments are supported:

    Group string
    UUID of the group Generated.
    Id string
    Generated.
    Order double
    Order of the policy binding within the target Generated.
    Policy string
    UUID of the policy Generated.
    Target string
    ID of the object this binding should apply to Generated.
    User double
    PK of the user Generated.
    Group string
    UUID of the group Generated.
    Id string
    Generated.
    Order float64
    Order of the policy binding within the target Generated.
    Policy string
    UUID of the policy Generated.
    Target string
    ID of the object this binding should apply to Generated.
    User float64
    PK of the user Generated.
    group string
    UUID of the group Generated.
    id string
    Generated.
    order number
    Order of the policy binding within the target Generated.
    policy string
    UUID of the policy Generated.
    target string
    ID of the object this binding should apply to Generated.
    user number
    PK of the user Generated.
    group String
    UUID of the group Generated.
    id String
    Generated.
    order Double
    Order of the policy binding within the target Generated.
    policy String
    UUID of the policy Generated.
    target String
    ID of the object this binding should apply to Generated.
    user Double
    PK of the user Generated.
    group string
    UUID of the group Generated.
    id string
    Generated.
    order number
    Order of the policy binding within the target Generated.
    policy string
    UUID of the policy Generated.
    target string
    ID of the object this binding should apply to Generated.
    user number
    PK of the user Generated.
    group str
    UUID of the group Generated.
    id str
    Generated.
    order float
    Order of the policy binding within the target Generated.
    policy str
    UUID of the policy Generated.
    target str
    ID of the object this binding should apply to Generated.
    user float
    PK of the user Generated.
    group String
    UUID of the group Generated.
    id String
    Generated.
    order Number
    Order of the policy binding within the target Generated.
    policy String
    UUID of the policy Generated.
    target String
    ID of the object this binding should apply to Generated.
    user Number
    PK of the user Generated.

    getPolicyBinding Result

    The following output properties are available:

    Enabled bool
    Generated.
    FailureResult bool
    Generated.
    Group string
    UUID of the group Generated.
    Id string
    Generated.
    Negate bool
    Generated.
    Order double
    Order of the policy binding within the target Generated.
    Policy string
    UUID of the policy Generated.
    Target string
    ID of the object this binding should apply to Generated.
    Timeout double
    Generated.
    User double
    PK of the user Generated.
    Enabled bool
    Generated.
    FailureResult bool
    Generated.
    Group string
    UUID of the group Generated.
    Id string
    Generated.
    Negate bool
    Generated.
    Order float64
    Order of the policy binding within the target Generated.
    Policy string
    UUID of the policy Generated.
    Target string
    ID of the object this binding should apply to Generated.
    Timeout float64
    Generated.
    User float64
    PK of the user Generated.
    enabled bool
    Generated.
    failure_result bool
    Generated.
    group string
    UUID of the group Generated.
    id string
    Generated.
    negate bool
    Generated.
    order number
    Order of the policy binding within the target Generated.
    policy string
    UUID of the policy Generated.
    target string
    ID of the object this binding should apply to Generated.
    timeout number
    Generated.
    user number
    PK of the user Generated.
    enabled Boolean
    Generated.
    failureResult Boolean
    Generated.
    group String
    UUID of the group Generated.
    id String
    Generated.
    negate Boolean
    Generated.
    order Double
    Order of the policy binding within the target Generated.
    policy String
    UUID of the policy Generated.
    target String
    ID of the object this binding should apply to Generated.
    timeout Double
    Generated.
    user Double
    PK of the user Generated.
    enabled boolean
    Generated.
    failureResult boolean
    Generated.
    group string
    UUID of the group Generated.
    id string
    Generated.
    negate boolean
    Generated.
    order number
    Order of the policy binding within the target Generated.
    policy string
    UUID of the policy Generated.
    target string
    ID of the object this binding should apply to Generated.
    timeout number
    Generated.
    user number
    PK of the user Generated.
    enabled bool
    Generated.
    failure_result bool
    Generated.
    group str
    UUID of the group Generated.
    id str
    Generated.
    negate bool
    Generated.
    order float
    Order of the policy binding within the target Generated.
    policy str
    UUID of the policy Generated.
    target str
    ID of the object this binding should apply to Generated.
    timeout float
    Generated.
    user float
    PK of the user Generated.
    enabled Boolean
    Generated.
    failureResult Boolean
    Generated.
    group String
    UUID of the group Generated.
    id String
    Generated.
    negate Boolean
    Generated.
    order Number
    Order of the policy binding within the target Generated.
    policy String
    UUID of the policy Generated.
    target String
    ID of the object this binding should apply to Generated.
    timeout Number
    Generated.
    user Number
    PK of the user Generated.

    Package Details

    Repository
    authentik goauthentik/terraform-provider-authentik
    License
    Notes
    This Pulumi package is based on the authentik Terraform Provider.
    Viewing docs for authentik 2026.8.0
    published on Wednesday, Sep 9, 2026 by goauthentik

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial