1. Packages
  2. Artifactory
  3. API Docs
  4. ManagedUser
artifactory v6.6.0 published on Saturday, Apr 13, 2024 by Pulumi

artifactory.ManagedUser

Explore with Pulumi AI

artifactory logo
artifactory v6.6.0 published on Saturday, Apr 13, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as artifactory from "@pulumi/artifactory";
    
    const test_user = new artifactory.ManagedUser("test-user", {
        email: "test-user@artifactory-terraform.com",
        groups: [
            "readers",
            "logged-in-users",
        ],
        password: "my super secret password",
    });
    
    import pulumi
    import pulumi_artifactory as artifactory
    
    test_user = artifactory.ManagedUser("test-user",
        email="test-user@artifactory-terraform.com",
        groups=[
            "readers",
            "logged-in-users",
        ],
        password="my super secret password")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-artifactory/sdk/v6/go/artifactory"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := artifactory.NewManagedUser(ctx, "test-user", &artifactory.ManagedUserArgs{
    			Email: pulumi.String("test-user@artifactory-terraform.com"),
    			Groups: pulumi.StringArray{
    				pulumi.String("readers"),
    				pulumi.String("logged-in-users"),
    			},
    			Password: pulumi.String("my super secret password"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Artifactory = Pulumi.Artifactory;
    
    return await Deployment.RunAsync(() => 
    {
        var test_user = new Artifactory.ManagedUser("test-user", new()
        {
            Email = "test-user@artifactory-terraform.com",
            Groups = new[]
            {
                "readers",
                "logged-in-users",
            },
            Password = "my super secret password",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.artifactory.ManagedUser;
    import com.pulumi.artifactory.ManagedUserArgs;
    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 test_user = new ManagedUser("test-user", ManagedUserArgs.builder()        
                .email("test-user@artifactory-terraform.com")
                .groups(            
                    "readers",
                    "logged-in-users")
                .password("my super secret password")
                .build());
    
        }
    }
    
    resources:
      test-user:
        type: artifactory:ManagedUser
        properties:
          email: test-user@artifactory-terraform.com
          groups:
            - readers
            - logged-in-users
          password: my super secret password
    

    Create ManagedUser Resource

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

    Constructor syntax

    new ManagedUser(name: string, args: ManagedUserArgs, opts?: CustomResourceOptions);
    @overload
    def ManagedUser(resource_name: str,
                    args: ManagedUserArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def ManagedUser(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    email: Optional[str] = None,
                    password: Optional[str] = None,
                    admin: Optional[bool] = None,
                    disable_ui_access: Optional[bool] = None,
                    groups: Optional[Sequence[str]] = None,
                    internal_password_disabled: Optional[bool] = None,
                    name: Optional[str] = None,
                    profile_updatable: Optional[bool] = None)
    func NewManagedUser(ctx *Context, name string, args ManagedUserArgs, opts ...ResourceOption) (*ManagedUser, error)
    public ManagedUser(string name, ManagedUserArgs args, CustomResourceOptions? opts = null)
    public ManagedUser(String name, ManagedUserArgs args)
    public ManagedUser(String name, ManagedUserArgs args, CustomResourceOptions options)
    
    type: artifactory:ManagedUser
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ManagedUserArgs
    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 ManagedUserArgs
    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 ManagedUserArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ManagedUserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ManagedUserArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var managedUserResource = new Artifactory.ManagedUser("managedUserResource", new()
    {
        Email = "string",
        Password = "string",
        Admin = false,
        DisableUiAccess = false,
        Groups = new[]
        {
            "string",
        },
        InternalPasswordDisabled = false,
        Name = "string",
        ProfileUpdatable = false,
    });
    
    example, err := artifactory.NewManagedUser(ctx, "managedUserResource", &artifactory.ManagedUserArgs{
    	Email:           pulumi.String("string"),
    	Password:        pulumi.String("string"),
    	Admin:           pulumi.Bool(false),
    	DisableUiAccess: pulumi.Bool(false),
    	Groups: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	InternalPasswordDisabled: pulumi.Bool(false),
    	Name:                     pulumi.String("string"),
    	ProfileUpdatable:         pulumi.Bool(false),
    })
    
    var managedUserResource = new ManagedUser("managedUserResource", ManagedUserArgs.builder()        
        .email("string")
        .password("string")
        .admin(false)
        .disableUiAccess(false)
        .groups("string")
        .internalPasswordDisabled(false)
        .name("string")
        .profileUpdatable(false)
        .build());
    
    managed_user_resource = artifactory.ManagedUser("managedUserResource",
        email="string",
        password="string",
        admin=False,
        disable_ui_access=False,
        groups=["string"],
        internal_password_disabled=False,
        name="string",
        profile_updatable=False)
    
    const managedUserResource = new artifactory.ManagedUser("managedUserResource", {
        email: "string",
        password: "string",
        admin: false,
        disableUiAccess: false,
        groups: ["string"],
        internalPasswordDisabled: false,
        name: "string",
        profileUpdatable: false,
    });
    
    type: artifactory:ManagedUser
    properties:
        admin: false
        disableUiAccess: false
        email: string
        groups:
            - string
        internalPasswordDisabled: false
        name: string
        password: string
        profileUpdatable: false
    

    ManagedUser Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ManagedUser resource accepts the following input properties:

    Email string
    Email for user.
    Password string
    (Optional, Sensitive) Password for the user. When omitted, a random password is generated using the following password policy: 12 characters with 1 digit, 1 symbol, with upper and lower case letters
    Admin bool
    (Optional, Default: false) When enabled, this user is an administrator with all the ensuing privileges.
    DisableUiAccess bool
    (Optional, Default: true) When enabled, this user can only access the system through the REST API. This option cannot be set if the user has Admin privileges.
    Groups List<string>
    List of groups this user is a part of. Notes: If this attribute is not specified then user's group membership is set to empty. User will not be part of default "readers" group automatically.
    InternalPasswordDisabled bool
    (Optional, Default: false) When enabled, disables the fallback mechanism for using an internal password when external authentication (such as LDAP) is enabled.
    Name string
    Username for user. May contain lowercase letters, numbers and symbols: '.-_@'
    ProfileUpdatable bool
    (Optional, Default: true) When enabled, this user can update their profile details (except for the password. Only an administrator can update the password). There may be cases in which you want to leave this unset to prevent users from updating their profile. For example, a departmental user with a single password shared between all department members.
    Email string
    Email for user.
    Password string
    (Optional, Sensitive) Password for the user. When omitted, a random password is generated using the following password policy: 12 characters with 1 digit, 1 symbol, with upper and lower case letters
    Admin bool
    (Optional, Default: false) When enabled, this user is an administrator with all the ensuing privileges.
    DisableUiAccess bool
    (Optional, Default: true) When enabled, this user can only access the system through the REST API. This option cannot be set if the user has Admin privileges.
    Groups []string
    List of groups this user is a part of. Notes: If this attribute is not specified then user's group membership is set to empty. User will not be part of default "readers" group automatically.
    InternalPasswordDisabled bool
    (Optional, Default: false) When enabled, disables the fallback mechanism for using an internal password when external authentication (such as LDAP) is enabled.
    Name string
    Username for user. May contain lowercase letters, numbers and symbols: '.-_@'
    ProfileUpdatable bool
    (Optional, Default: true) When enabled, this user can update their profile details (except for the password. Only an administrator can update the password). There may be cases in which you want to leave this unset to prevent users from updating their profile. For example, a departmental user with a single password shared between all department members.
    email String
    Email for user.
    password String
    (Optional, Sensitive) Password for the user. When omitted, a random password is generated using the following password policy: 12 characters with 1 digit, 1 symbol, with upper and lower case letters
    admin Boolean
    (Optional, Default: false) When enabled, this user is an administrator with all the ensuing privileges.
    disableUiAccess Boolean
    (Optional, Default: true) When enabled, this user can only access the system through the REST API. This option cannot be set if the user has Admin privileges.
    groups List<String>
    List of groups this user is a part of. Notes: If this attribute is not specified then user's group membership is set to empty. User will not be part of default "readers" group automatically.
    internalPasswordDisabled Boolean
    (Optional, Default: false) When enabled, disables the fallback mechanism for using an internal password when external authentication (such as LDAP) is enabled.
    name String
    Username for user. May contain lowercase letters, numbers and symbols: '.-_@'
    profileUpdatable Boolean
    (Optional, Default: true) When enabled, this user can update their profile details (except for the password. Only an administrator can update the password). There may be cases in which you want to leave this unset to prevent users from updating their profile. For example, a departmental user with a single password shared between all department members.
    email string
    Email for user.
    password string
    (Optional, Sensitive) Password for the user. When omitted, a random password is generated using the following password policy: 12 characters with 1 digit, 1 symbol, with upper and lower case letters
    admin boolean
    (Optional, Default: false) When enabled, this user is an administrator with all the ensuing privileges.
    disableUiAccess boolean
    (Optional, Default: true) When enabled, this user can only access the system through the REST API. This option cannot be set if the user has Admin privileges.
    groups string[]
    List of groups this user is a part of. Notes: If this attribute is not specified then user's group membership is set to empty. User will not be part of default "readers" group automatically.
    internalPasswordDisabled boolean
    (Optional, Default: false) When enabled, disables the fallback mechanism for using an internal password when external authentication (such as LDAP) is enabled.
    name string
    Username for user. May contain lowercase letters, numbers and symbols: '.-_@'
    profileUpdatable boolean
    (Optional, Default: true) When enabled, this user can update their profile details (except for the password. Only an administrator can update the password). There may be cases in which you want to leave this unset to prevent users from updating their profile. For example, a departmental user with a single password shared between all department members.
    email str
    Email for user.
    password str
    (Optional, Sensitive) Password for the user. When omitted, a random password is generated using the following password policy: 12 characters with 1 digit, 1 symbol, with upper and lower case letters
    admin bool
    (Optional, Default: false) When enabled, this user is an administrator with all the ensuing privileges.
    disable_ui_access bool
    (Optional, Default: true) When enabled, this user can only access the system through the REST API. This option cannot be set if the user has Admin privileges.
    groups Sequence[str]
    List of groups this user is a part of. Notes: If this attribute is not specified then user's group membership is set to empty. User will not be part of default "readers" group automatically.
    internal_password_disabled bool
    (Optional, Default: false) When enabled, disables the fallback mechanism for using an internal password when external authentication (such as LDAP) is enabled.
    name str
    Username for user. May contain lowercase letters, numbers and symbols: '.-_@'
    profile_updatable bool
    (Optional, Default: true) When enabled, this user can update their profile details (except for the password. Only an administrator can update the password). There may be cases in which you want to leave this unset to prevent users from updating their profile. For example, a departmental user with a single password shared between all department members.
    email String
    Email for user.
    password String
    (Optional, Sensitive) Password for the user. When omitted, a random password is generated using the following password policy: 12 characters with 1 digit, 1 symbol, with upper and lower case letters
    admin Boolean
    (Optional, Default: false) When enabled, this user is an administrator with all the ensuing privileges.
    disableUiAccess Boolean
    (Optional, Default: true) When enabled, this user can only access the system through the REST API. This option cannot be set if the user has Admin privileges.
    groups List<String>
    List of groups this user is a part of. Notes: If this attribute is not specified then user's group membership is set to empty. User will not be part of default "readers" group automatically.
    internalPasswordDisabled Boolean
    (Optional, Default: false) When enabled, disables the fallback mechanism for using an internal password when external authentication (such as LDAP) is enabled.
    name String
    Username for user. May contain lowercase letters, numbers and symbols: '.-_@'
    profileUpdatable Boolean
    (Optional, Default: true) When enabled, this user can update their profile details (except for the password. Only an administrator can update the password). There may be cases in which you want to leave this unset to prevent users from updating their profile. For example, a departmental user with a single password shared between all department members.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ManagedUser 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 str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ManagedUser Resource

    Get an existing ManagedUser 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?: ManagedUserState, opts?: CustomResourceOptions): ManagedUser
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admin: Optional[bool] = None,
            disable_ui_access: Optional[bool] = None,
            email: Optional[str] = None,
            groups: Optional[Sequence[str]] = None,
            internal_password_disabled: Optional[bool] = None,
            name: Optional[str] = None,
            password: Optional[str] = None,
            profile_updatable: Optional[bool] = None) -> ManagedUser
    func GetManagedUser(ctx *Context, name string, id IDInput, state *ManagedUserState, opts ...ResourceOption) (*ManagedUser, error)
    public static ManagedUser Get(string name, Input<string> id, ManagedUserState? state, CustomResourceOptions? opts = null)
    public static ManagedUser get(String name, Output<String> id, ManagedUserState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    Admin bool
    (Optional, Default: false) When enabled, this user is an administrator with all the ensuing privileges.
    DisableUiAccess bool
    (Optional, Default: true) When enabled, this user can only access the system through the REST API. This option cannot be set if the user has Admin privileges.
    Email string
    Email for user.
    Groups List<string>
    List of groups this user is a part of. Notes: If this attribute is not specified then user's group membership is set to empty. User will not be part of default "readers" group automatically.
    InternalPasswordDisabled bool
    (Optional, Default: false) When enabled, disables the fallback mechanism for using an internal password when external authentication (such as LDAP) is enabled.
    Name string
    Username for user. May contain lowercase letters, numbers and symbols: '.-_@'
    Password string
    (Optional, Sensitive) Password for the user. When omitted, a random password is generated using the following password policy: 12 characters with 1 digit, 1 symbol, with upper and lower case letters
    ProfileUpdatable bool
    (Optional, Default: true) When enabled, this user can update their profile details (except for the password. Only an administrator can update the password). There may be cases in which you want to leave this unset to prevent users from updating their profile. For example, a departmental user with a single password shared between all department members.
    Admin bool
    (Optional, Default: false) When enabled, this user is an administrator with all the ensuing privileges.
    DisableUiAccess bool
    (Optional, Default: true) When enabled, this user can only access the system through the REST API. This option cannot be set if the user has Admin privileges.
    Email string
    Email for user.
    Groups []string
    List of groups this user is a part of. Notes: If this attribute is not specified then user's group membership is set to empty. User will not be part of default "readers" group automatically.
    InternalPasswordDisabled bool
    (Optional, Default: false) When enabled, disables the fallback mechanism for using an internal password when external authentication (such as LDAP) is enabled.
    Name string
    Username for user. May contain lowercase letters, numbers and symbols: '.-_@'
    Password string
    (Optional, Sensitive) Password for the user. When omitted, a random password is generated using the following password policy: 12 characters with 1 digit, 1 symbol, with upper and lower case letters
    ProfileUpdatable bool
    (Optional, Default: true) When enabled, this user can update their profile details (except for the password. Only an administrator can update the password). There may be cases in which you want to leave this unset to prevent users from updating their profile. For example, a departmental user with a single password shared between all department members.
    admin Boolean
    (Optional, Default: false) When enabled, this user is an administrator with all the ensuing privileges.
    disableUiAccess Boolean
    (Optional, Default: true) When enabled, this user can only access the system through the REST API. This option cannot be set if the user has Admin privileges.
    email String
    Email for user.
    groups List<String>
    List of groups this user is a part of. Notes: If this attribute is not specified then user's group membership is set to empty. User will not be part of default "readers" group automatically.
    internalPasswordDisabled Boolean
    (Optional, Default: false) When enabled, disables the fallback mechanism for using an internal password when external authentication (such as LDAP) is enabled.
    name String
    Username for user. May contain lowercase letters, numbers and symbols: '.-_@'
    password String
    (Optional, Sensitive) Password for the user. When omitted, a random password is generated using the following password policy: 12 characters with 1 digit, 1 symbol, with upper and lower case letters
    profileUpdatable Boolean
    (Optional, Default: true) When enabled, this user can update their profile details (except for the password. Only an administrator can update the password). There may be cases in which you want to leave this unset to prevent users from updating their profile. For example, a departmental user with a single password shared between all department members.
    admin boolean
    (Optional, Default: false) When enabled, this user is an administrator with all the ensuing privileges.
    disableUiAccess boolean
    (Optional, Default: true) When enabled, this user can only access the system through the REST API. This option cannot be set if the user has Admin privileges.
    email string
    Email for user.
    groups string[]
    List of groups this user is a part of. Notes: If this attribute is not specified then user's group membership is set to empty. User will not be part of default "readers" group automatically.
    internalPasswordDisabled boolean
    (Optional, Default: false) When enabled, disables the fallback mechanism for using an internal password when external authentication (such as LDAP) is enabled.
    name string
    Username for user. May contain lowercase letters, numbers and symbols: '.-_@'
    password string
    (Optional, Sensitive) Password for the user. When omitted, a random password is generated using the following password policy: 12 characters with 1 digit, 1 symbol, with upper and lower case letters
    profileUpdatable boolean
    (Optional, Default: true) When enabled, this user can update their profile details (except for the password. Only an administrator can update the password). There may be cases in which you want to leave this unset to prevent users from updating their profile. For example, a departmental user with a single password shared between all department members.
    admin bool
    (Optional, Default: false) When enabled, this user is an administrator with all the ensuing privileges.
    disable_ui_access bool
    (Optional, Default: true) When enabled, this user can only access the system through the REST API. This option cannot be set if the user has Admin privileges.
    email str
    Email for user.
    groups Sequence[str]
    List of groups this user is a part of. Notes: If this attribute is not specified then user's group membership is set to empty. User will not be part of default "readers" group automatically.
    internal_password_disabled bool
    (Optional, Default: false) When enabled, disables the fallback mechanism for using an internal password when external authentication (such as LDAP) is enabled.
    name str
    Username for user. May contain lowercase letters, numbers and symbols: '.-_@'
    password str
    (Optional, Sensitive) Password for the user. When omitted, a random password is generated using the following password policy: 12 characters with 1 digit, 1 symbol, with upper and lower case letters
    profile_updatable bool
    (Optional, Default: true) When enabled, this user can update their profile details (except for the password. Only an administrator can update the password). There may be cases in which you want to leave this unset to prevent users from updating their profile. For example, a departmental user with a single password shared between all department members.
    admin Boolean
    (Optional, Default: false) When enabled, this user is an administrator with all the ensuing privileges.
    disableUiAccess Boolean
    (Optional, Default: true) When enabled, this user can only access the system through the REST API. This option cannot be set if the user has Admin privileges.
    email String
    Email for user.
    groups List<String>
    List of groups this user is a part of. Notes: If this attribute is not specified then user's group membership is set to empty. User will not be part of default "readers" group automatically.
    internalPasswordDisabled Boolean
    (Optional, Default: false) When enabled, disables the fallback mechanism for using an internal password when external authentication (such as LDAP) is enabled.
    name String
    Username for user. May contain lowercase letters, numbers and symbols: '.-_@'
    password String
    (Optional, Sensitive) Password for the user. When omitted, a random password is generated using the following password policy: 12 characters with 1 digit, 1 symbol, with upper and lower case letters
    profileUpdatable Boolean
    (Optional, Default: true) When enabled, this user can update their profile details (except for the password. Only an administrator can update the password). There may be cases in which you want to leave this unset to prevent users from updating their profile. For example, a departmental user with a single password shared between all department members.

    Import

    $ pulumi import artifactory:index/managedUser:ManagedUser test-user myusername
    

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

    Package Details

    Repository
    artifactory pulumi/pulumi-artifactory
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the artifactory Terraform Provider.
    artifactory logo
    artifactory v6.6.0 published on Saturday, Apr 13, 2024 by Pulumi