artifactory v6.8.4 published on Thursday, Jun 6, 2024 by Pulumi
artifactory.getUser
Explore with Pulumi AI
# 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",
});
import pulumi
import pulumi_artifactory as artifactory
#
user1 = artifactory.get_user(name="user1")
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.LookupUser(ctx, &artifactory.LookupUserArgs{
Name: "user1",
}, nil)
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 user1 = Artifactory.GetUser.Invoke(new()
{
Name = "user1",
});
});
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());
}
}
variables:
#
user1:
fn::invoke:
Function: artifactory:getUser
Arguments:
name: user1
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>
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]
func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)
func LookupUserOutput(ctx *Context, args *LookupUserOutputArgs, opts ...InvokeOption) LookupUserResultOutput
> 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)
}
public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: artifactory:index/getUser:getUser
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Name of the user.
- Admin bool
- When enabled, this user is an administrator with all the ensuing privileges. Default value is
false
. - Disable
Ui boolAccess - 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.
- Internal
Password boolDisabled - 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 string
- Name of the user.
- Admin bool
- When enabled, this user is an administrator with all the ensuing privileges. Default value is
false
. - Disable
Ui boolAccess - 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.
- Internal
Password boolDisabled - 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 String
- Name of the user.
- admin Boolean
- When enabled, this user is an administrator with all the ensuing privileges. Default value is
false
. - disable
Ui BooleanAccess - 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.
- internal
Password BooleanDisabled - When set, disables the fallback of using an internal password when external authentication (such as LDAP) is enabled.
- profile
Updatable 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 string
- Name of the user.
- admin boolean
- When enabled, this user is an administrator with all the ensuing privileges. Default value is
false
. - disable
Ui booleanAccess - 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.
- internal
Password booleanDisabled - When set, disables the fallback of using an internal password when external authentication (such as LDAP) is enabled.
- profile
Updatable 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 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_ boolaccess - 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_ booldisabled - 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 String
- Name of the user.
- admin Boolean
- When enabled, this user is an administrator with all the ensuing privileges. Default value is
false
. - disable
Ui BooleanAccess - 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.
- internal
Password BooleanDisabled - When set, disables the fallback of using an internal password when external authentication (such as LDAP) is enabled.
- profile
Updatable 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
. - Disable
Ui boolAccess - 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.
- Internal
Password boolDisabled - 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 bool
- When enabled, this user is an administrator with all the ensuing privileges. Default value is
false
. - Disable
Ui boolAccess - 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.
- Internal
Password boolDisabled - 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
. - disable
Ui BooleanAccess - 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.
- internal
Password BooleanDisabled - When set, disables the fallback of using an internal password when external authentication (such as LDAP) is enabled.
- profile
Updatable 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
. - disable
Ui booleanAccess - 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.
- internal
Password booleanDisabled - When set, disables the fallback of using an internal password when external authentication (such as LDAP) is enabled.
- profile
Updatable 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_ boolaccess - 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_ booldisabled - 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
. - disable
Ui BooleanAccess - 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.
- internal
Password BooleanDisabled - When set, disables the fallback of using an internal password when external authentication (such as LDAP) is enabled.
- profile
Updatable 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.