Users data source in the Terraform Googleworkspace provider. Users resides under the https://www.googleapis.com/auth/admin.directory.user
client scope.
data "googleworkspace_users" "my-domain-users" {}
output "num_users" {
value = length(data.googleworkspace_users.my-domain-users.users)
}
id
(String) The ID of this resource.users
(List of Object) A list of User resources. (see below for nested schema)users
Read-Only:
addresses
(List of Object) (see below for nested schema)agreed_to_terms
(Boolean)aliases
(List of String)archived
(Boolean)change_password_at_next_login
(Boolean)creation_time
(String)custom_schemas
(List of Object) (see below for nested schema)customer_id
(String)deletion_time
(String)emails
(List of Object) (see below for nested schema)etag
(String)external_ids
(List of Object) (see below for nested schema)hash_function
(String)id
(String)ims
(List of Object) (see below for nested schema)include_in_global_address_list
(Boolean)ip_allowlist
(Boolean)is_admin
(Boolean)is_delegated_admin
(Boolean)is_enforced_in_2_step_verification
(Boolean)is_enrolled_in_2_step_verification
(Boolean)is_mailbox_setup
(Boolean)keywords
(List of Object) (see below for nested schema)languages
(List of Object) (see below for nested schema)last_login_time
(String)locations
(List of Object) (see below for nested schema)name
(List of Object) (see below for nested schema)non_editable_aliases
(List of String)org_unit_path
(String)organizations
(List of Object) (see below for nested schema)password
(String)phones
(List of Object) (see below for nested schema)posix_accounts
(List of Object) (see below for nested schema)primary_email
(String)recovery_email
(String)recovery_phone
(String)relations
(List of Object) (see below for nested schema)ssh_public_keys
(List of Object) (see below for nested schema)suspended
(Boolean)suspension_reason
(String)thumbnail_photo_etag
(String)thumbnail_photo_url
(String)websites
(List of Object) (see below for nested schema)users.addresses
Read-Only:
country
(String)country_code
(String)custom_type
(String)extended_address
(String)formatted
(String)locality
(String)po_box
(String)postal_code
(String)primary
(Boolean)region
(String)source_is_structured
(Boolean)street_address
(String)type
(String)users.custom_schemas
Read-Only:
schema_name
(String)schema_values
(Map of String)users.emails
Read-Only:
address
(String)custom_type
(String)primary
(Boolean)type
(String)users.external_ids
Read-Only:
custom_type
(String)type
(String)value
(String)users.ims
Read-Only:
custom_protocol
(String)custom_type
(String)im
(String)primary
(Boolean)protocol
(String)type
(String)users.keywords
Read-Only:
custom_type
(String)type
(String)value
(String)users.languages
Read-Only:
custom_language
(String)language_code
(String)preference
(String)users.locations
Read-Only:
area
(String)building_id
(String)custom_type
(String)desk_code
(String)floor_name
(String)floor_section
(String)type
(String)users.name
Read-Only:
family_name
(String)full_name
(String)given_name
(String)users.organizations
Read-Only:
cost_center
(String)custom_type
(String)department
(String)description
(String)domain
(String)full_time_equivalent
(Number)location
(String)name
(String)primary
(Boolean)symbol
(String)title
(String)type
(String)users.phones
Read-Only:
custom_type
(String)primary
(Boolean)type
(String)value
(String)users.posix_accounts
Read-Only:
account_id
(String)gecos
(String)gid
(String)home_directory
(String)operating_system_type
(String)primary
(Boolean)shell
(String)system_id
(String)uid
(String)username
(String)users.relations
Read-Only:
custom_type
(String)type
(String)value
(String)users.ssh_public_keys
Read-Only:
expiration_time_usec
(String)fingerprint
(String)key
(String)users.websites
Read-Only:
custom_type
(String)primary
(Boolean)type
(String)value
(String)