User Args
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());
}
}
Content copied to clipboard
Import
$ pulumi import gitlab:index/user:User You can import a user to terraform state using `<resource> <id>`.
Content copied to clipboard
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
Content copied to clipboard
Constructors
Link copied to clipboard
fun UserArgs(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)