User
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
Boolean, defaults to false. Whether to allow the user to create groups.
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.
The ID of the user's namespace. Available since GitLab 14.10.
Integer, defaults to 0. Number of projects user can create.
Boolean, defaults to false. Send user password reset link.
Boolean, defaults to true. Whether to skip confirmation.