Skip to content

user

This data source provides information about a single Falcon user. Use this to look up a user by user UUID or email and reference their attributes in other resources.

The following API scopes are required:

  • User management: READ
terraform {
required_providers {
crowdstrike = {
source = "registry.terraform.io/crowdstrike/crowdstrike"
}
}
}
provider "crowdstrike" {
cloud = "us-2"
}
# Look up a user by email
data "crowdstrike_user" "by_email" {
email = "jane.doe@example.com"
}
# Look up a user by UUID
data "crowdstrike_user" "by_uuid" {
user_uuid = "654534c5-2565-43b1-89f6-a9230c0de6ba"
}
output "user_full_name" {
value = "${data.crowdstrike_user.by_email.first_name} ${data.crowdstrike_user.by_email.last_name}"
}
  • email (String) The user’s email address, which serves as their username. Exactly one of ‘user_uuid’ or ‘email’ must be provided.
  • user_uuid (String) The unique identifier (UUID) assigned to the user by CrowdStrike. Exactly one of ‘user_uuid’ or ‘email’ must be provided.
  • cid (String) The Customer ID (CID) the user belongs to.
  • first_name (String) The user’s first name.
  • last_name (String) The user’s last name.
  • status (String) The user’s status (for example, active).