1. Packages
  2. Artifactory Provider
  3. API Docs
  4. getUser
artifactory v8.8.1 published on Wednesday, Apr 9, 2025 by Pulumi

artifactory.getUser

Explore with Pulumi AI

artifactory v8.8.1 published on Wednesday, Apr 9, 2025 by Pulumi

# Artifactory User Data Source

Provides an Artifactory user data source. This can be used to read the configuration of users in artifactory.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as artifactory from "@pulumi/artifactory";

//
const user1 = artifactory.getUser({
    name: "user1",
});
Copy
import pulumi
import pulumi_artifactory as artifactory

#
user1 = artifactory.get_user(name="user1")
Copy
package main

import (
	"github.com/pulumi/pulumi-artifactory/sdk/v8/go/artifactory"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := artifactory.LookupUser(ctx, &artifactory.LookupUserArgs{
			Name: "user1",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Artifactory = Pulumi.Artifactory;

return await Deployment.RunAsync(() => 
{
    //
    var user1 = Artifactory.GetUser.Invoke(new()
    {
        Name = "user1",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.artifactory.ArtifactoryFunctions;
import com.pulumi.artifactory.inputs.GetUserArgs;
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) {
        //
        final var user1 = ArtifactoryFunctions.getUser(GetUserArgs.builder()
            .name("user1")
            .build());

    }
}
Copy
variables:
  #
  user1:
    fn::invoke:
      function: artifactory:getUser
      arguments:
        name: user1
Copy

Using getUser

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 getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>
function getUserOutput(args: GetUserOutputArgs, opts?: InvokeOptions): Output<GetUserResult>
Copy
def get_user(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,
             profile_updatable: Optional[bool] = None,
             opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(admin: Optional[pulumi.Input[bool]] = None,
             disable_ui_access: Optional[pulumi.Input[bool]] = None,
             email: Optional[pulumi.Input[str]] = None,
             groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
             internal_password_disabled: Optional[pulumi.Input[bool]] = None,
             name: Optional[pulumi.Input[str]] = None,
             profile_updatable: Optional[pulumi.Input[bool]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetUserResult]
Copy
func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)
func LookupUserOutput(ctx *Context, args *LookupUserOutputArgs, opts ...InvokeOption) LookupUserResultOutput
Copy

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

public static class GetUser 
{
    public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions? opts = null)
    public static Output<GetUserResult> Invoke(GetUserInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: artifactory:index/getUser:getUser
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name
This property is required.
Changes to this property will trigger replacement.
string
Name of the user.
Admin bool
When enabled, this user is an administrator with all the ensuing privileges. Default value is false.
DisableUiAccess bool
When set, this user can only access Artifactory through the REST API. This option cannot be set if the user has Admin privileges. Default value is true.
Email string
Email for user.
Groups List<string>
List of groups this user is a part of.
InternalPasswordDisabled bool
When set, disables the fallback of using an internal password when external authentication (such as LDAP) is enabled.
ProfileUpdatable bool
When set, this user can update his profile details (except for the password. Only an administrator can update the password). Default value is true.
Name
This property is required.
Changes to this property will trigger replacement.
string
Name of the user.
Admin bool
When enabled, this user is an administrator with all the ensuing privileges. Default value is false.
DisableUiAccess bool
When set, this user can only access Artifactory through the REST API. This option cannot be set if the user has Admin privileges. Default value is true.
Email string
Email for user.
Groups []string
List of groups this user is a part of.
InternalPasswordDisabled bool
When set, disables the fallback of using an internal password when external authentication (such as LDAP) is enabled.
ProfileUpdatable bool
When set, this user can update his profile details (except for the password. Only an administrator can update the password). Default value is true.
name
This property is required.
Changes to this property will trigger replacement.
String
Name of the user.
admin Boolean
When enabled, this user is an administrator with all the ensuing privileges. Default value is false.
disableUiAccess Boolean
When set, this user can only access Artifactory through the REST API. This option cannot be set if the user has Admin privileges. Default value is true.
email String
Email for user.
groups List<String>
List of groups this user is a part of.
internalPasswordDisabled Boolean
When set, disables the fallback of using an internal password when external authentication (such as LDAP) is enabled.
profileUpdatable Boolean
When set, this user can update his profile details (except for the password. Only an administrator can update the password). Default value is true.
name
This property is required.
Changes to this property will trigger replacement.
string
Name of the user.
admin boolean
When enabled, this user is an administrator with all the ensuing privileges. Default value is false.
disableUiAccess boolean
When set, this user can only access Artifactory through the REST API. This option cannot be set if the user has Admin privileges. Default value is true.
email string
Email for user.
groups string[]
List of groups this user is a part of.
internalPasswordDisabled boolean
When set, disables the fallback of using an internal password when external authentication (such as LDAP) is enabled.
profileUpdatable boolean
When set, this user can update his profile details (except for the password. Only an administrator can update the password). Default value is true.
name
This property is required.
Changes to this property will trigger replacement.
str
Name of the user.
admin bool
When enabled, this user is an administrator with all the ensuing privileges. Default value is false.
disable_ui_access bool
When set, this user can only access Artifactory through the REST API. This option cannot be set if the user has Admin privileges. Default value is true.
email str
Email for user.
groups Sequence[str]
List of groups this user is a part of.
internal_password_disabled bool
When set, disables the fallback of using an internal password when external authentication (such as LDAP) is enabled.
profile_updatable bool
When set, this user can update his profile details (except for the password. Only an administrator can update the password). Default value is true.
name
This property is required.
Changes to this property will trigger replacement.
String
Name of the user.
admin Boolean
When enabled, this user is an administrator with all the ensuing privileges. Default value is false.
disableUiAccess Boolean
When set, this user can only access Artifactory through the REST API. This option cannot be set if the user has Admin privileges. Default value is true.
email String
Email for user.
groups List<String>
List of groups this user is a part of.
internalPasswordDisabled Boolean
When set, disables the fallback of using an internal password when external authentication (such as LDAP) is enabled.
profileUpdatable Boolean
When set, this user can update his profile details (except for the password. Only an administrator can update the password). Default value is true.

getUser Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Name string
Admin bool
When enabled, this user is an administrator with all the ensuing privileges. Default value is false.
DisableUiAccess bool
When set, this user can only access Artifactory through the REST API. This option cannot be set if the user has Admin privileges. Default value is true.
Email string
Email for user.
Groups List<string>
List of groups this user is a part of.
InternalPasswordDisabled bool
When set, disables the fallback of using an internal password when external authentication (such as LDAP) is enabled.
ProfileUpdatable bool
When set, this user can update his profile details (except for the password. Only an administrator can update the password). Default value is true.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Admin bool
When enabled, this user is an administrator with all the ensuing privileges. Default value is false.
DisableUiAccess bool
When set, this user can only access Artifactory through the REST API. This option cannot be set if the user has Admin privileges. Default value is true.
Email string
Email for user.
Groups []string
List of groups this user is a part of.
InternalPasswordDisabled bool
When set, disables the fallback of using an internal password when external authentication (such as LDAP) is enabled.
ProfileUpdatable bool
When set, this user can update his profile details (except for the password. Only an administrator can update the password). Default value is true.
id String
The provider-assigned unique ID for this managed resource.
name String
admin Boolean
When enabled, this user is an administrator with all the ensuing privileges. Default value is false.
disableUiAccess Boolean
When set, this user can only access Artifactory through the REST API. This option cannot be set if the user has Admin privileges. Default value is true.
email String
Email for user.
groups List<String>
List of groups this user is a part of.
internalPasswordDisabled Boolean
When set, disables the fallback of using an internal password when external authentication (such as LDAP) is enabled.
profileUpdatable Boolean
When set, this user can update his profile details (except for the password. Only an administrator can update the password). Default value is true.
id string
The provider-assigned unique ID for this managed resource.
name string
admin boolean
When enabled, this user is an administrator with all the ensuing privileges. Default value is false.
disableUiAccess boolean
When set, this user can only access Artifactory through the REST API. This option cannot be set if the user has Admin privileges. Default value is true.
email string
Email for user.
groups string[]
List of groups this user is a part of.
internalPasswordDisabled boolean
When set, disables the fallback of using an internal password when external authentication (such as LDAP) is enabled.
profileUpdatable boolean
When set, this user can update his profile details (except for the password. Only an administrator can update the password). Default value is true.
id str
The provider-assigned unique ID for this managed resource.
name str
admin bool
When enabled, this user is an administrator with all the ensuing privileges. Default value is false.
disable_ui_access bool
When set, this user can only access Artifactory through the REST API. This option cannot be set if the user has Admin privileges. Default value is true.
email str
Email for user.
groups Sequence[str]
List of groups this user is a part of.
internal_password_disabled bool
When set, disables the fallback of using an internal password when external authentication (such as LDAP) is enabled.
profile_updatable bool
When set, this user can update his profile details (except for the password. Only an administrator can update the password). Default value is true.
id String
The provider-assigned unique ID for this managed resource.
name String
admin Boolean
When enabled, this user is an administrator with all the ensuing privileges. Default value is false.
disableUiAccess Boolean
When set, this user can only access Artifactory through the REST API. This option cannot be set if the user has Admin privileges. Default value is true.
email String
Email for user.
groups List<String>
List of groups this user is a part of.
internalPasswordDisabled Boolean
When set, disables the fallback of using an internal password when external authentication (such as LDAP) is enabled.
profileUpdatable Boolean
When set, this user can update his profile details (except for the password. Only an administrator can update the password). Default value is true.

Package Details

Repository
artifactory pulumi/pulumi-artifactory
License
Apache-2.0
Notes
This Pulumi package is based on the artifactory Terraform Provider.
artifactory v8.8.1 published on Wednesday, Apr 9, 2025 by Pulumi