1. Packages
  2. Packages
  3. HashiCorp Vault Provider
  4. API Docs
  5. radius
  6. AuthBackendUser
Viewing docs for HashiCorp Vault v7.11.0
published on Wednesday, Jul 22, 2026 by Pulumi
vault logo vault logo
Viewing docs for HashiCorp Vault v7.11.0
published on Wednesday, Jul 22, 2026 by Pulumi

    Provides a resource to create a user in a RADIUS auth backend within Vault.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vault from "@pulumi/vault";
    
    const radius = new vault.AuthBackend("radius", {
        type: "radius",
        path: "radius",
    });
    const user = new vault.radius.AuthBackendUser("user", {
        mount: radius.path,
        username: "test-user",
        policies: [
            "default",
            "dev-policy",
        ],
    });
    
    import pulumi
    import pulumi_vault as vault
    
    radius = vault.AuthBackend("radius",
        type="radius",
        path="radius")
    user = vault.radius.AuthBackendUser("user",
        mount=radius.path,
        username="test-user",
        policies=[
            "default",
            "dev-policy",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-vault/sdk/v7/go/vault"
    	"github.com/pulumi/pulumi-vault/sdk/v7/go/vault/radius"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		radius2, err := vault.NewAuthBackend(ctx, "radius", &vault.AuthBackendArgs{
    			Type: pulumi.String("radius"),
    			Path: pulumi.String("radius"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = radius.NewAuthBackendUser(ctx, "user", &radius.AuthBackendUserArgs{
    			Mount:    radius2.Path,
    			Username: pulumi.String("test-user"),
    			Policies: pulumi.StringArray{
    				pulumi.String("default"),
    				pulumi.String("dev-policy"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vault = Pulumi.Vault;
    
    return await Deployment.RunAsync(() => 
    {
        var radius = new Vault.AuthBackend("radius", new()
        {
            Type = "radius",
            Path = "radius",
        });
    
        var user = new Vault.Radius.AuthBackendUser("user", new()
        {
            Mount = radius.Path,
            Username = "test-user",
            Policies = new[]
            {
                "default",
                "dev-policy",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vault.AuthBackend;
    import com.pulumi.vault.AuthBackendArgs;
    import com.pulumi.vault.radius.AuthBackendUser;
    import com.pulumi.vault.radius.AuthBackendUserArgs;
    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) {
            var radius = new AuthBackend("radius", AuthBackendArgs.builder()
                .type("radius")
                .path("radius")
                .build());
    
            var user = new AuthBackendUser("user", AuthBackendUserArgs.builder()
                .mount(radius.path())
                .username("test-user")
                .policies(            
                    "default",
                    "dev-policy")
                .build());
    
        }
    }
    
    resources:
      radius:
        type: vault:AuthBackend
        properties:
          type: radius
          path: radius
      user:
        type: vault:radius:AuthBackendUser
        properties:
          mount: ${radius.path}
          username: test-user
          policies:
            - default
            - dev-policy
    
    pulumi {
      required_providers {
        vault = {
          source = "pulumi/vault"
        }
      }
    }
    
    resource "vault_authbackend" "radius" {
      type = "radius"
      path = "radius"
    }
    resource "vault_radius_authbackenduser" "user" {
      mount    = vault_authbackend.radius.path
      username = "test-user"
      policies = ["default", "dev-policy"]
    }
    

    Create AuthBackendUser Resource

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

    Constructor syntax

    new AuthBackendUser(name: string, args: AuthBackendUserArgs, opts?: CustomResourceOptions);
    @overload
    def AuthBackendUser(resource_name: str,
                        args: AuthBackendUserArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def AuthBackendUser(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        mount: Optional[str] = None,
                        username: Optional[str] = None,
                        namespace: Optional[str] = None,
                        policies: Optional[Sequence[str]] = None)
    func NewAuthBackendUser(ctx *Context, name string, args AuthBackendUserArgs, opts ...ResourceOption) (*AuthBackendUser, error)
    public AuthBackendUser(string name, AuthBackendUserArgs args, CustomResourceOptions? opts = null)
    public AuthBackendUser(String name, AuthBackendUserArgs args)
    public AuthBackendUser(String name, AuthBackendUserArgs args, CustomResourceOptions options)
    
    type: vault:radius:AuthBackendUser
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "vault_radius_auth_backend_user" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AuthBackendUserArgs
    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 AuthBackendUserArgs
    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 AuthBackendUserArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AuthBackendUserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AuthBackendUserArgs
    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 exampleauthBackendUserResourceResourceFromRadiusauthBackendUser = new Vault.Radius.AuthBackendUser("exampleauthBackendUserResourceResourceFromRadiusauthBackendUser", new()
    {
        Mount = "string",
        Username = "string",
        Namespace = "string",
        Policies = new[]
        {
            "string",
        },
    });
    
    example, err := radius.NewAuthBackendUser(ctx, "exampleauthBackendUserResourceResourceFromRadiusauthBackendUser", &radius.AuthBackendUserArgs{
    	Mount:     pulumi.String("string"),
    	Username:  pulumi.String("string"),
    	Namespace: pulumi.String("string"),
    	Policies: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    resource "vault_radius_auth_backend_user" "exampleauthBackendUserResourceResourceFromRadiusauthBackendUser" {
      lifecycle {
        create_before_destroy = true
      }
      mount     = "string"
      username  = "string"
      namespace = "string"
      policies  = ["string"]
    }
    
    var exampleauthBackendUserResourceResourceFromRadiusauthBackendUser = new com.pulumi.vault.radius.AuthBackendUser("exampleauthBackendUserResourceResourceFromRadiusauthBackendUser", com.pulumi.vault.radius.AuthBackendUserArgs.builder()
        .mount("string")
        .username("string")
        .namespace("string")
        .policies("string")
        .build());
    
    exampleauth_backend_user_resource_resource_from_radiusauth_backend_user = vault.radius.AuthBackendUser("exampleauthBackendUserResourceResourceFromRadiusauthBackendUser",
        mount="string",
        username="string",
        namespace="string",
        policies=["string"])
    
    const exampleauthBackendUserResourceResourceFromRadiusauthBackendUser = new vault.radius.AuthBackendUser("exampleauthBackendUserResourceResourceFromRadiusauthBackendUser", {
        mount: "string",
        username: "string",
        namespace: "string",
        policies: ["string"],
    });
    
    type: vault:radius:AuthBackendUser
    properties:
        mount: string
        namespace: string
        policies:
            - string
        username: string
    

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

    Mount string
    Path to the RADIUS auth mount where the user will be registered.
    Username string
    The username to register with the RADIUS auth backend.
    Namespace string
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    Policies List<string>

    A set of Vault policies to associate with this user. If not set, only the default policy will be applicable to the user.

    For more details on the usage of each argument consult the Vault RADIUS API documentation.

    Mount string
    Path to the RADIUS auth mount where the user will be registered.
    Username string
    The username to register with the RADIUS auth backend.
    Namespace string
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    Policies []string

    A set of Vault policies to associate with this user. If not set, only the default policy will be applicable to the user.

    For more details on the usage of each argument consult the Vault RADIUS API documentation.

    mount string
    Path to the RADIUS auth mount where the user will be registered.
    username string
    The username to register with the RADIUS auth backend.
    namespace string
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    policies list(string)

    A set of Vault policies to associate with this user. If not set, only the default policy will be applicable to the user.

    For more details on the usage of each argument consult the Vault RADIUS API documentation.

    mount String
    Path to the RADIUS auth mount where the user will be registered.
    username String
    The username to register with the RADIUS auth backend.
    namespace String
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    policies List<String>

    A set of Vault policies to associate with this user. If not set, only the default policy will be applicable to the user.

    For more details on the usage of each argument consult the Vault RADIUS API documentation.

    mount string
    Path to the RADIUS auth mount where the user will be registered.
    username string
    The username to register with the RADIUS auth backend.
    namespace string
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    policies string[]

    A set of Vault policies to associate with this user. If not set, only the default policy will be applicable to the user.

    For more details on the usage of each argument consult the Vault RADIUS API documentation.

    mount str
    Path to the RADIUS auth mount where the user will be registered.
    username str
    The username to register with the RADIUS auth backend.
    namespace str
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    policies Sequence[str]

    A set of Vault policies to associate with this user. If not set, only the default policy will be applicable to the user.

    For more details on the usage of each argument consult the Vault RADIUS API documentation.

    mount String
    Path to the RADIUS auth mount where the user will be registered.
    username String
    The username to register with the RADIUS auth backend.
    namespace String
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    policies List<String>

    A set of Vault policies to associate with this user. If not set, only the default policy will be applicable to the user.

    For more details on the usage of each argument consult the Vault RADIUS API documentation.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AuthBackendUser 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 AuthBackendUser Resource

    Get an existing AuthBackendUser 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?: AuthBackendUserState, opts?: CustomResourceOptions): AuthBackendUser
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            mount: Optional[str] = None,
            namespace: Optional[str] = None,
            policies: Optional[Sequence[str]] = None,
            username: Optional[str] = None) -> AuthBackendUser
    func GetAuthBackendUser(ctx *Context, name string, id IDInput, state *AuthBackendUserState, opts ...ResourceOption) (*AuthBackendUser, error)
    public static AuthBackendUser Get(string name, Input<string> id, AuthBackendUserState? state, CustomResourceOptions? opts = null)
    public static AuthBackendUser get(String name, Output<String> id, AuthBackendUserState state, CustomResourceOptions options)
    resources:  _:    type: vault:radius:AuthBackendUser    get:      id: ${id}
    import {
      to = vault_radius_auth_backend_user.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:
    Mount string
    Path to the RADIUS auth mount where the user will be registered.
    Namespace string
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    Policies List<string>

    A set of Vault policies to associate with this user. If not set, only the default policy will be applicable to the user.

    For more details on the usage of each argument consult the Vault RADIUS API documentation.

    Username string
    The username to register with the RADIUS auth backend.
    Mount string
    Path to the RADIUS auth mount where the user will be registered.
    Namespace string
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    Policies []string

    A set of Vault policies to associate with this user. If not set, only the default policy will be applicable to the user.

    For more details on the usage of each argument consult the Vault RADIUS API documentation.

    Username string
    The username to register with the RADIUS auth backend.
    mount string
    Path to the RADIUS auth mount where the user will be registered.
    namespace string
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    policies list(string)

    A set of Vault policies to associate with this user. If not set, only the default policy will be applicable to the user.

    For more details on the usage of each argument consult the Vault RADIUS API documentation.

    username string
    The username to register with the RADIUS auth backend.
    mount String
    Path to the RADIUS auth mount where the user will be registered.
    namespace String
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    policies List<String>

    A set of Vault policies to associate with this user. If not set, only the default policy will be applicable to the user.

    For more details on the usage of each argument consult the Vault RADIUS API documentation.

    username String
    The username to register with the RADIUS auth backend.
    mount string
    Path to the RADIUS auth mount where the user will be registered.
    namespace string
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    policies string[]

    A set of Vault policies to associate with this user. If not set, only the default policy will be applicable to the user.

    For more details on the usage of each argument consult the Vault RADIUS API documentation.

    username string
    The username to register with the RADIUS auth backend.
    mount str
    Path to the RADIUS auth mount where the user will be registered.
    namespace str
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    policies Sequence[str]

    A set of Vault policies to associate with this user. If not set, only the default policy will be applicable to the user.

    For more details on the usage of each argument consult the Vault RADIUS API documentation.

    username str
    The username to register with the RADIUS auth backend.
    mount String
    Path to the RADIUS auth mount where the user will be registered.
    namespace String
    The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.
    policies List<String>

    A set of Vault policies to associate with this user. If not set, only the default policy will be applicable to the user.

    For more details on the usage of each argument consult the Vault RADIUS API documentation.

    username String
    The username to register with the RADIUS auth backend.

    Import

    RADIUS authentication backend users can be imported using the full user API path, e.g.

    $ pulumi import vault:radius/authBackendUser:AuthBackendUser user auth/radius/users/test-user
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Vault pulumi/pulumi-vault
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vault Terraform Provider.
    vault logo vault logo
    Viewing docs for HashiCorp Vault v7.11.0
    published on Wednesday, Jul 22, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial