foreman_user¶
User can be used to allow access to foreman.
Example Usage¶
# Autogenerated example with required keys
data "foreman_user" "example" {
description = "api user"
firstname = "Louis"
lastname = "Jansens"
login = "username"
mail = "test@example.com"
}
Argument Reference¶
The following arguments are supported:
description- (Optional) User description.firstname- (Optional) Firstname of the user.lastname- (Optional) Lastname of the user.login- (Optional) loginname of the user.mail- (Optional) email of the user.
Attributes Reference¶
The following attributes are exported:
admin- If the user is allow admin privilegesauth_source_id- Set the authentication source, i.e internal (1,default) or external (2)default_location_id- Default location for the user, if empty takes global defaultdefault_organization_id- Default organization for the user, if empty takes global defaultdescription- User description.firstname- Firstname of the user.lastname- Lastname of the user.locale- Sets the timezone/location of a userlocation_ids- List of all locations a user has access tologin- loginname of the user.mail- email of the user.organization_ids- List of all organizations a user has access topassword- Password of user, required if auth_source_id is 1 (internal)