UserArgs

data class UserArgs(val canCreateGroup: Output<Boolean>? = null, val email: Output<String>? = null, val isAdmin: Output<Boolean>? = null, val isExternal: Output<Boolean>? = null, val name: Output<String>? = null, val namespaceId: Output<Int>? = null, val note: Output<String>? = null, val password: Output<String>? = null, val projectsLimit: Output<Int>? = null, val resetPassword: Output<Boolean>? = null, val skipConfirmation: Output<Boolean>? = null, val state: Output<String>? = null, val username: Output<String>? = null) : ConvertibleToJava<UserArgs>

The gitlab.User resource allows to manage the lifecycle of a user.

the provider needs to be configured with admin-level access for this resource to work. You must specify either password or reset_password. Upstream API: GitLab REST API docs

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.User;
import com.pulumi.gitlab.UserArgs;
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 example = new User("example", UserArgs.builder()
.canCreateGroup(false)
.email("gitlab@user.create")
.isAdmin(true)
.isExternal(true)
.password("superPassword")
.projectsLimit(4)
.resetPassword(false)
.username("example")
.build());
}
}

Import

$ pulumi import gitlab:index/user:User You can import a user to terraform state using `<resource> <id>`.

The id must be an integer for the id of the user you want to import, for example

$ pulumi import gitlab:index/user:User example 42

Constructors

Link copied to clipboard
constructor(canCreateGroup: Output<Boolean>? = null, email: Output<String>? = null, isAdmin: Output<Boolean>? = null, isExternal: Output<Boolean>? = null, name: Output<String>? = null, namespaceId: Output<Int>? = null, note: Output<String>? = null, password: Output<String>? = null, projectsLimit: Output<Int>? = null, resetPassword: Output<Boolean>? = null, skipConfirmation: Output<Boolean>? = null, state: Output<String>? = null, username: Output<String>? = null)

Properties

Link copied to clipboard
val canCreateGroup: Output<Boolean>? = null

Boolean, defaults to false. Whether to allow the user to create groups.

Link copied to clipboard
val email: Output<String>? = null

The e-mail address of the user.

Link copied to clipboard
val isAdmin: Output<Boolean>? = null

Boolean, defaults to false. Whether to enable administrative privileges

Link copied to clipboard
val isExternal: Output<Boolean>? = null

Boolean, defaults to false. Whether a user has access only to some internal or private projects. External users can only access projects to which they are explicitly granted access.

Link copied to clipboard
val name: Output<String>? = null

The name of the user.

Link copied to clipboard
val namespaceId: Output<Int>? = null

The ID of the user's namespace. Available since GitLab 14.10.

Link copied to clipboard
val note: Output<String>? = null

The note associated to the user.

Link copied to clipboard
val password: Output<String>? = null

The password of the user.

Link copied to clipboard
val projectsLimit: Output<Int>? = null

Integer, defaults to 0. Number of projects user can create.

Link copied to clipboard
val resetPassword: Output<Boolean>? = null

Boolean, defaults to false. Send user password reset link.

Link copied to clipboard
val skipConfirmation: Output<Boolean>? = null

Boolean, defaults to true. Whether to skip confirmation.

Link copied to clipboard
val state: Output<String>? = null

String, defaults to 'active'. The state of the user account. Valid values are active, deactivated, blocked.

Link copied to clipboard
val username: Output<String>? = null

The username of the user.

Functions

Link copied to clipboard
open override fun toJava(): UserArgs