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 privileges
  • auth_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 default
  • default_organization_id - Default organization for the user, if empty takes global default
  • description - User description.
  • firstname - Firstname of the user.
  • lastname - Lastname of the user.
  • locale - Sets the timezone/location of a user
  • location_ids - List of all locations a user has access to
  • login - loginname of the user.
  • mail - email of the user.
  • organization_ids - List of all organizations a user has access to
  • password - Password of user, required if auth_source_id is 1 (internal)