1. Packages
  2. Packages
  3. Authentik Provider
  4. API Docs
  5. StageAccountLockdown
Viewing docs for authentik 2026.5.0
published on Wednesday, Jun 10, 2026 by goauthentik
Viewing docs for authentik 2026.5.0
published on Wednesday, Jun 10, 2026 by goauthentik

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as authentik from "@pulumi/authentik";
    
    // Create an account lockdown stage
    const name = new authentik.StageAccountLockdown("name", {
        name: "account-lockdown",
        deactivateUser: true,
        setUnusablePassword: true,
        deleteSessions: true,
        revokeTokens: true,
    });
    
    import pulumi
    import pulumi_authentik as authentik
    
    # Create an account lockdown stage
    name = authentik.StageAccountLockdown("name",
        name="account-lockdown",
        deactivate_user=True,
        set_unusable_password=True,
        delete_sessions=True,
        revoke_tokens=True)
    
    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 {
    		// Create an account lockdown stage
    		_, err := authentik.NewStageAccountLockdown(ctx, "name", &authentik.StageAccountLockdownArgs{
    			Name:                pulumi.String("account-lockdown"),
    			DeactivateUser:      pulumi.Bool(true),
    			SetUnusablePassword: pulumi.Bool(true),
    			DeleteSessions:      pulumi.Bool(true),
    			RevokeTokens:        pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Authentik = Pulumi.Authentik;
    
    return await Deployment.RunAsync(() => 
    {
        // Create an account lockdown stage
        var name = new Authentik.StageAccountLockdown("name", new()
        {
            Name = "account-lockdown",
            DeactivateUser = true,
            SetUnusablePassword = true,
            DeleteSessions = true,
            RevokeTokens = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.authentik.StageAccountLockdown;
    import com.pulumi.authentik.StageAccountLockdownArgs;
    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) {
            // Create an account lockdown stage
            var name = new StageAccountLockdown("name", StageAccountLockdownArgs.builder()
                .name("account-lockdown")
                .deactivateUser(true)
                .setUnusablePassword(true)
                .deleteSessions(true)
                .revokeTokens(true)
                .build());
    
        }
    }
    
    resources:
      # Create an account lockdown stage
      name:
        type: authentik:StageAccountLockdown
        properties:
          name: account-lockdown
          deactivateUser: true
          setUnusablePassword: true
          deleteSessions: true
          revokeTokens: true
    
    Example coming soon!
    

    Create StageAccountLockdown Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new StageAccountLockdown(name: string, args?: StageAccountLockdownArgs, opts?: CustomResourceOptions);
    @overload
    def StageAccountLockdown(resource_name: str,
                             args: Optional[StageAccountLockdownArgs] = None,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def StageAccountLockdown(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             deactivate_user: Optional[bool] = None,
                             delete_sessions: Optional[bool] = None,
                             name: Optional[str] = None,
                             revoke_tokens: Optional[bool] = None,
                             self_service_completion_flow: Optional[str] = None,
                             set_unusable_password: Optional[bool] = None,
                             stage_account_lockdown_id: Optional[str] = None)
    func NewStageAccountLockdown(ctx *Context, name string, args *StageAccountLockdownArgs, opts ...ResourceOption) (*StageAccountLockdown, error)
    public StageAccountLockdown(string name, StageAccountLockdownArgs? args = null, CustomResourceOptions? opts = null)
    public StageAccountLockdown(String name, StageAccountLockdownArgs args)
    public StageAccountLockdown(String name, StageAccountLockdownArgs args, CustomResourceOptions options)
    
    type: authentik:StageAccountLockdown
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "authentik_stageaccountlockdown" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args StageAccountLockdownArgs
    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 StageAccountLockdownArgs
    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 StageAccountLockdownArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StageAccountLockdownArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StageAccountLockdownArgs
    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 stageAccountLockdownResource = new Authentik.StageAccountLockdown("stageAccountLockdownResource", new()
    {
        DeactivateUser = false,
        DeleteSessions = false,
        Name = "string",
        RevokeTokens = false,
        SelfServiceCompletionFlow = "string",
        SetUnusablePassword = false,
        StageAccountLockdownId = "string",
    });
    
    example, err := authentik.NewStageAccountLockdown(ctx, "stageAccountLockdownResource", &authentik.StageAccountLockdownArgs{
    	DeactivateUser:            pulumi.Bool(false),
    	DeleteSessions:            pulumi.Bool(false),
    	Name:                      pulumi.String("string"),
    	RevokeTokens:              pulumi.Bool(false),
    	SelfServiceCompletionFlow: pulumi.String("string"),
    	SetUnusablePassword:       pulumi.Bool(false),
    	StageAccountLockdownId:    pulumi.String("string"),
    })
    
    resource "authentik_stageaccountlockdown" "stageAccountLockdownResource" {
      deactivate_user              = false
      delete_sessions              = false
      name                         = "string"
      revoke_tokens                = false
      self_service_completion_flow = "string"
      set_unusable_password        = false
      stage_account_lockdown_id    = "string"
    }
    
    var stageAccountLockdownResource = new StageAccountLockdown("stageAccountLockdownResource", StageAccountLockdownArgs.builder()
        .deactivateUser(false)
        .deleteSessions(false)
        .name("string")
        .revokeTokens(false)
        .selfServiceCompletionFlow("string")
        .setUnusablePassword(false)
        .stageAccountLockdownId("string")
        .build());
    
    stage_account_lockdown_resource = authentik.StageAccountLockdown("stageAccountLockdownResource",
        deactivate_user=False,
        delete_sessions=False,
        name="string",
        revoke_tokens=False,
        self_service_completion_flow="string",
        set_unusable_password=False,
        stage_account_lockdown_id="string")
    
    const stageAccountLockdownResource = new authentik.StageAccountLockdown("stageAccountLockdownResource", {
        deactivateUser: false,
        deleteSessions: false,
        name: "string",
        revokeTokens: false,
        selfServiceCompletionFlow: "string",
        setUnusablePassword: false,
        stageAccountLockdownId: "string",
    });
    
    type: authentik:StageAccountLockdown
    properties:
        deactivateUser: false
        deleteSessions: false
        name: string
        revokeTokens: false
        selfServiceCompletionFlow: string
        setUnusablePassword: false
        stageAccountLockdownId: string
    

    StageAccountLockdown 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 StageAccountLockdown resource accepts the following input properties:

    DeactivateUser bool
    Defaults to true.
    DeleteSessions bool
    Defaults to true.
    Name string
    RevokeTokens bool
    Defaults to true.
    SelfServiceCompletionFlow string
    SetUnusablePassword bool
    Defaults to true.
    StageAccountLockdownId string
    The ID of this resource.
    DeactivateUser bool
    Defaults to true.
    DeleteSessions bool
    Defaults to true.
    Name string
    RevokeTokens bool
    Defaults to true.
    SelfServiceCompletionFlow string
    SetUnusablePassword bool
    Defaults to true.
    StageAccountLockdownId string
    The ID of this resource.
    deactivate_user bool
    Defaults to true.
    delete_sessions bool
    Defaults to true.
    name string
    revoke_tokens bool
    Defaults to true.
    self_service_completion_flow string
    set_unusable_password bool
    Defaults to true.
    stage_account_lockdown_id string
    The ID of this resource.
    deactivateUser Boolean
    Defaults to true.
    deleteSessions Boolean
    Defaults to true.
    name String
    revokeTokens Boolean
    Defaults to true.
    selfServiceCompletionFlow String
    setUnusablePassword Boolean
    Defaults to true.
    stageAccountLockdownId String
    The ID of this resource.
    deactivateUser boolean
    Defaults to true.
    deleteSessions boolean
    Defaults to true.
    name string
    revokeTokens boolean
    Defaults to true.
    selfServiceCompletionFlow string
    setUnusablePassword boolean
    Defaults to true.
    stageAccountLockdownId string
    The ID of this resource.
    deactivate_user bool
    Defaults to true.
    delete_sessions bool
    Defaults to true.
    name str
    revoke_tokens bool
    Defaults to true.
    self_service_completion_flow str
    set_unusable_password bool
    Defaults to true.
    stage_account_lockdown_id str
    The ID of this resource.
    deactivateUser Boolean
    Defaults to true.
    deleteSessions Boolean
    Defaults to true.
    name String
    revokeTokens Boolean
    Defaults to true.
    selfServiceCompletionFlow String
    setUnusablePassword Boolean
    Defaults to true.
    stageAccountLockdownId String
    The ID of this resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the StageAccountLockdown resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing StageAccountLockdown Resource

    Get an existing StageAccountLockdown 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?: StageAccountLockdownState, opts?: CustomResourceOptions): StageAccountLockdown
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            deactivate_user: Optional[bool] = None,
            delete_sessions: Optional[bool] = None,
            name: Optional[str] = None,
            revoke_tokens: Optional[bool] = None,
            self_service_completion_flow: Optional[str] = None,
            set_unusable_password: Optional[bool] = None,
            stage_account_lockdown_id: Optional[str] = None) -> StageAccountLockdown
    func GetStageAccountLockdown(ctx *Context, name string, id IDInput, state *StageAccountLockdownState, opts ...ResourceOption) (*StageAccountLockdown, error)
    public static StageAccountLockdown Get(string name, Input<string> id, StageAccountLockdownState? state, CustomResourceOptions? opts = null)
    public static StageAccountLockdown get(String name, Output<String> id, StageAccountLockdownState state, CustomResourceOptions options)
    resources:  _:    type: authentik:StageAccountLockdown    get:      id: ${id}
    import {
      to = authentik_stageaccountlockdown.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.
    The following state arguments are supported:
    DeactivateUser bool
    Defaults to true.
    DeleteSessions bool
    Defaults to true.
    Name string
    RevokeTokens bool
    Defaults to true.
    SelfServiceCompletionFlow string
    SetUnusablePassword bool
    Defaults to true.
    StageAccountLockdownId string
    The ID of this resource.
    DeactivateUser bool
    Defaults to true.
    DeleteSessions bool
    Defaults to true.
    Name string
    RevokeTokens bool
    Defaults to true.
    SelfServiceCompletionFlow string
    SetUnusablePassword bool
    Defaults to true.
    StageAccountLockdownId string
    The ID of this resource.
    deactivate_user bool
    Defaults to true.
    delete_sessions bool
    Defaults to true.
    name string
    revoke_tokens bool
    Defaults to true.
    self_service_completion_flow string
    set_unusable_password bool
    Defaults to true.
    stage_account_lockdown_id string
    The ID of this resource.
    deactivateUser Boolean
    Defaults to true.
    deleteSessions Boolean
    Defaults to true.
    name String
    revokeTokens Boolean
    Defaults to true.
    selfServiceCompletionFlow String
    setUnusablePassword Boolean
    Defaults to true.
    stageAccountLockdownId String
    The ID of this resource.
    deactivateUser boolean
    Defaults to true.
    deleteSessions boolean
    Defaults to true.
    name string
    revokeTokens boolean
    Defaults to true.
    selfServiceCompletionFlow string
    setUnusablePassword boolean
    Defaults to true.
    stageAccountLockdownId string
    The ID of this resource.
    deactivate_user bool
    Defaults to true.
    delete_sessions bool
    Defaults to true.
    name str
    revoke_tokens bool
    Defaults to true.
    self_service_completion_flow str
    set_unusable_password bool
    Defaults to true.
    stage_account_lockdown_id str
    The ID of this resource.
    deactivateUser Boolean
    Defaults to true.
    deleteSessions Boolean
    Defaults to true.
    name String
    revokeTokens Boolean
    Defaults to true.
    selfServiceCompletionFlow String
    setUnusablePassword Boolean
    Defaults to true.
    stageAccountLockdownId String
    The ID of this resource.

    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.5.0
    published on Wednesday, Jun 10, 2026 by goauthentik

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial