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.
API Scopes
Section titled “API Scopes”The following API scopes are required:
- User management: READ
Example Usage
Section titled “Example Usage”terraform { required_providers { crowdstrike = { source = "registry.terraform.io/crowdstrike/crowdstrike" } }}
provider "crowdstrike" { cloud = "us-2"}
# Look up a user by emaildata "crowdstrike_user" "by_email" { email = "jane.doe@example.com"}
# Look up a user by UUIDdata "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}"}Schema
Section titled “Schema”Optional
Section titled “Optional”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.
Read-Only
Section titled “Read-Only”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).