published on Wednesday, Sep 9, 2026 by goauthentik
published on Wednesday, Sep 9, 2026 by goauthentik
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as authentik from "@pulumi/authentik";
const example = new authentik.ObjectAttribute("example", {
objectType: "authentik_core.user",
key: "employee_id",
label: "Employee ID",
type: "text",
isUnique: true,
isRequired: false,
});
import pulumi
import pulumi_authentik as authentik
example = authentik.ObjectAttribute("example",
object_type="authentik_core.user",
key="employee_id",
label="Employee ID",
type="text",
is_unique=True,
is_required=False)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/authentik/v2026/authentik"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := authentik.NewObjectAttribute(ctx, "example", &authentik.ObjectAttributeArgs{
ObjectType: pulumi.String("authentik_core.user"),
Key: pulumi.String("employee_id"),
Label: pulumi.String("Employee ID"),
Type: pulumi.String("text"),
IsUnique: pulumi.Bool(true),
IsRequired: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Authentik = Pulumi.Authentik;
return await Deployment.RunAsync(() =>
{
var example = new Authentik.ObjectAttribute("example", new()
{
ObjectType = "authentik_core.user",
Key = "employee_id",
Label = "Employee ID",
Type = "text",
IsUnique = true,
IsRequired = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.authentik.ObjectAttribute;
import com.pulumi.authentik.ObjectAttributeArgs;
import java.util.List;
import java.util.ArrayList;
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) {
var example = new ObjectAttribute("example", ObjectAttributeArgs.builder()
.objectType("authentik_core.user")
.key("employee_id")
.label("Employee ID")
.type("text")
.isUnique(true)
.isRequired(false)
.build());
}
}
resources:
example:
type: authentik:ObjectAttribute
properties:
objectType: authentik_core.user
key: employee_id
label: Employee ID
type: text
isUnique: true
isRequired: false
Example coming soon!
Create ObjectAttribute Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ObjectAttribute(name: string, args: ObjectAttributeArgs, opts?: CustomResourceOptions);@overload
def ObjectAttribute(resource_name: str,
args: ObjectAttributeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ObjectAttribute(resource_name: str,
opts: Optional[ResourceOptions] = None,
key: Optional[str] = None,
label: Optional[str] = None,
object_type: Optional[str] = None,
type: Optional[str] = None,
enabled: Optional[bool] = None,
group: Optional[str] = None,
is_required: Optional[bool] = None,
is_unique: Optional[bool] = None,
managed: Optional[str] = None,
object_attribute_id: Optional[str] = None,
regex: Optional[str] = None)func NewObjectAttribute(ctx *Context, name string, args ObjectAttributeArgs, opts ...ResourceOption) (*ObjectAttribute, error)public ObjectAttribute(string name, ObjectAttributeArgs args, CustomResourceOptions? opts = null)
public ObjectAttribute(String name, ObjectAttributeArgs args)
public ObjectAttribute(String name, ObjectAttributeArgs args, CustomResourceOptions options)
type: authentik:ObjectAttribute
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "authentik_object_attribute" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ObjectAttributeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ObjectAttributeArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ObjectAttributeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObjectAttributeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObjectAttributeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var objectAttributeResource = new Authentik.ObjectAttribute("objectAttributeResource", new()
{
Key = "string",
Label = "string",
ObjectType = "string",
Type = "string",
Enabled = false,
Group = "string",
IsRequired = false,
IsUnique = false,
Managed = "string",
ObjectAttributeId = "string",
Regex = "string",
});
example, err := authentik.NewObjectAttribute(ctx, "objectAttributeResource", &authentik.ObjectAttributeArgs{
Key: pulumi.String("string"),
Label: pulumi.String("string"),
ObjectType: pulumi.String("string"),
Type: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Group: pulumi.String("string"),
IsRequired: pulumi.Bool(false),
IsUnique: pulumi.Bool(false),
Managed: pulumi.String("string"),
ObjectAttributeId: pulumi.String("string"),
Regex: pulumi.String("string"),
})
resource "authentik_object_attribute" "objectAttributeResource" {
lifecycle {
create_before_destroy = true
}
key = "string"
label = "string"
object_type = "string"
type = "string"
enabled = false
group = "string"
is_required = false
is_unique = false
managed = "string"
object_attribute_id = "string"
regex = "string"
}
var objectAttributeResource = new ObjectAttribute("objectAttributeResource", ObjectAttributeArgs.builder()
.key("string")
.label("string")
.objectType("string")
.type("string")
.enabled(false)
.group("string")
.isRequired(false)
.isUnique(false)
.managed("string")
.objectAttributeId("string")
.regex("string")
.build());
object_attribute_resource = authentik.ObjectAttribute("objectAttributeResource",
key="string",
label="string",
object_type="string",
type="string",
enabled=False,
group="string",
is_required=False,
is_unique=False,
managed="string",
object_attribute_id="string",
regex="string")
const objectAttributeResource = new authentik.ObjectAttribute("objectAttributeResource", {
key: "string",
label: "string",
objectType: "string",
type: "string",
enabled: false,
group: "string",
isRequired: false,
isUnique: false,
managed: "string",
objectAttributeId: "string",
regex: "string",
});
type: authentik:ObjectAttribute
properties:
enabled: false
group: string
isRequired: false
isUnique: false
key: string
label: string
managed: string
objectAttributeId: string
objectType: string
regex: string
type: string
ObjectAttribute Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ObjectAttribute resource accepts the following input properties:
- Key string
- Label string
- Object
Type string - Content-type of the objects this attribute definition applies to, e.g.
authentik_core.user. - Type string
- Allowed values:
textnumberboolean
- Enabled bool
- Defaults to
true. - Group string
- Is
Required bool - Is
Unique bool - Managed string
- Objects that are managed by authentik are created/updated automatically and may be overwritten by later migrations.
- Object
Attribute stringId - Regex string
- Key string
- Label string
- Object
Type string - Content-type of the objects this attribute definition applies to, e.g.
authentik_core.user. - Type string
- Allowed values:
textnumberboolean
- Enabled bool
- Defaults to
true. - Group string
- Is
Required bool - Is
Unique bool - Managed string
- Objects that are managed by authentik are created/updated automatically and may be overwritten by later migrations.
- Object
Attribute stringId - Regex string
- key string
- label string
- object_
type string - Content-type of the objects this attribute definition applies to, e.g.
authentik_core.user. - type string
- Allowed values:
textnumberboolean
- enabled bool
- Defaults to
true. - group string
- is_
required bool - is_
unique bool - managed string
- Objects that are managed by authentik are created/updated automatically and may be overwritten by later migrations.
- object_
attribute_ stringid - regex string
- key String
- label String
- object
Type String - Content-type of the objects this attribute definition applies to, e.g.
authentik_core.user. - type String
- Allowed values:
textnumberboolean
- enabled Boolean
- Defaults to
true. - group String
- is
Required Boolean - is
Unique Boolean - managed String
- Objects that are managed by authentik are created/updated automatically and may be overwritten by later migrations.
- object
Attribute StringId - regex String
- key string
- label string
- object
Type string - Content-type of the objects this attribute definition applies to, e.g.
authentik_core.user. - type string
- Allowed values:
textnumberboolean
- enabled boolean
- Defaults to
true. - group string
- is
Required boolean - is
Unique boolean - managed string
- Objects that are managed by authentik are created/updated automatically and may be overwritten by later migrations.
- object
Attribute stringId - regex string
- key str
- label str
- object_
type str - Content-type of the objects this attribute definition applies to, e.g.
authentik_core.user. - type str
- Allowed values:
textnumberboolean
- enabled bool
- Defaults to
true. - group str
- is_
required bool - is_
unique bool - managed str
- Objects that are managed by authentik are created/updated automatically and may be overwritten by later migrations.
- object_
attribute_ strid - regex str
- key String
- label String
- object
Type String - Content-type of the objects this attribute definition applies to, e.g.
authentik_core.user. - type String
- Allowed values:
textnumberboolean
- enabled Boolean
- Defaults to
true. - group String
- is
Required Boolean - is
Unique Boolean - managed String
- Objects that are managed by authentik are created/updated automatically and may be overwritten by later migrations.
- object
Attribute StringId - regex String
Outputs
All input properties are implicitly available as output properties. Additionally, the ObjectAttribute resource produces the following output properties:
- Created string
- Generated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - Generated.
- Created string
- Generated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - Generated.
- created string
- Generated.
- id string
- The provider-assigned unique ID for this managed resource.
- last_
updated string - Generated.
- created String
- Generated.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - Generated.
- created string
- Generated.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated string - Generated.
- created str
- Generated.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated str - Generated.
- created String
- Generated.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - Generated.
Look up Existing ObjectAttribute Resource
Get an existing ObjectAttribute resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ObjectAttributeState, opts?: CustomResourceOptions): ObjectAttribute@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created: Optional[str] = None,
enabled: Optional[bool] = None,
group: Optional[str] = None,
is_required: Optional[bool] = None,
is_unique: Optional[bool] = None,
key: Optional[str] = None,
label: Optional[str] = None,
last_updated: Optional[str] = None,
managed: Optional[str] = None,
object_attribute_id: Optional[str] = None,
object_type: Optional[str] = None,
regex: Optional[str] = None,
type: Optional[str] = None) -> ObjectAttributefunc GetObjectAttribute(ctx *Context, name string, id IDInput, state *ObjectAttributeState, opts ...ResourceOption) (*ObjectAttribute, error)public static ObjectAttribute Get(string name, Input<string> id, ObjectAttributeState? state, CustomResourceOptions? opts = null)public static ObjectAttribute get(String name, Output<String> id, ObjectAttributeState state, CustomResourceOptions options)resources: _: type: authentik:ObjectAttribute get: id: ${id}import {
to = authentik_object_attribute.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Created string
- Generated.
- Enabled bool
- Defaults to
true. - Group string
- Is
Required bool - Is
Unique bool - Key string
- Label string
- Last
Updated string - Generated.
- Managed string
- Objects that are managed by authentik are created/updated automatically and may be overwritten by later migrations.
- Object
Attribute stringId - Object
Type string - Content-type of the objects this attribute definition applies to, e.g.
authentik_core.user. - Regex string
- Type string
- Allowed values:
textnumberboolean
- Created string
- Generated.
- Enabled bool
- Defaults to
true. - Group string
- Is
Required bool - Is
Unique bool - Key string
- Label string
- Last
Updated string - Generated.
- Managed string
- Objects that are managed by authentik are created/updated automatically and may be overwritten by later migrations.
- Object
Attribute stringId - Object
Type string - Content-type of the objects this attribute definition applies to, e.g.
authentik_core.user. - Regex string
- Type string
- Allowed values:
textnumberboolean
- created string
- Generated.
- enabled bool
- Defaults to
true. - group string
- is_
required bool - is_
unique bool - key string
- label string
- last_
updated string - Generated.
- managed string
- Objects that are managed by authentik are created/updated automatically and may be overwritten by later migrations.
- object_
attribute_ stringid - object_
type string - Content-type of the objects this attribute definition applies to, e.g.
authentik_core.user. - regex string
- type string
- Allowed values:
textnumberboolean
- created String
- Generated.
- enabled Boolean
- Defaults to
true. - group String
- is
Required Boolean - is
Unique Boolean - key String
- label String
- last
Updated String - Generated.
- managed String
- Objects that are managed by authentik are created/updated automatically and may be overwritten by later migrations.
- object
Attribute StringId - object
Type String - Content-type of the objects this attribute definition applies to, e.g.
authentik_core.user. - regex String
- type String
- Allowed values:
textnumberboolean
- created string
- Generated.
- enabled boolean
- Defaults to
true. - group string
- is
Required boolean - is
Unique boolean - key string
- label string
- last
Updated string - Generated.
- managed string
- Objects that are managed by authentik are created/updated automatically and may be overwritten by later migrations.
- object
Attribute stringId - object
Type string - Content-type of the objects this attribute definition applies to, e.g.
authentik_core.user. - regex string
- type string
- Allowed values:
textnumberboolean
- created str
- Generated.
- enabled bool
- Defaults to
true. - group str
- is_
required bool - is_
unique bool - key str
- label str
- last_
updated str - Generated.
- managed str
- Objects that are managed by authentik are created/updated automatically and may be overwritten by later migrations.
- object_
attribute_ strid - object_
type str - Content-type of the objects this attribute definition applies to, e.g.
authentik_core.user. - regex str
- type str
- Allowed values:
textnumberboolean
- created String
- Generated.
- enabled Boolean
- Defaults to
true. - group String
- is
Required Boolean - is
Unique Boolean - key String
- label String
- last
Updated String - Generated.
- managed String
- Objects that are managed by authentik are created/updated automatically and may be overwritten by later migrations.
- object
Attribute StringId - object
Type String - Content-type of the objects this attribute definition applies to, e.g.
authentik_core.user. - regex String
- type String
- Allowed values:
textnumberboolean
Package Details
- Repository
- authentik goauthentik/terraform-provider-authentik
- License
- Notes
- This Pulumi package is based on the
authentikTerraform Provider.
published on Wednesday, Sep 9, 2026 by goauthentik