Use this resource to manage users.
resource "nexus_security_user" "admin" {
userid = "admin"
firstname = "Administrator"
lastname = "User"
email = "nexus@example.com"
password = "admin123"
roles = ["nx-admin"]
status = "active"
}
email
(String) The email address associated with the user.firstname
(String) The first name of the user.lastname
(String) The last name of the user.password
(String, Sensitive) The password for the user.userid
(String) The userid which is required for login. This value cannot be changed.roles
(Set of String) The roles which the user has been assigned within Nexus.status
(String) The user's status, e.g. active or disabled.Import is supported using the following syntax:
# import using the userid of the user
terraform import nexus_security_user.admin admin