User

class User : KotlinCustomResource

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

Properties

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

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

Link copied to clipboard
val email: Output<String>

The e-mail address of the user.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val isAdmin: Output<Boolean>?

Boolean, defaults to false. Whether to enable administrative privileges

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

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>

The name of the user.

Link copied to clipboard
val namespaceId: Output<Int>

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

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

The note associated to the user.

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

The password of the user.

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

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resetPassword: Output<Boolean>?

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

Link copied to clipboard

Boolean, defaults to true. Whether to skip confirmation.

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

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

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val username: Output<String>

The username of the user.