Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 1.86 KB

identity_user.html.markdown

File metadata and controls

68 lines (45 loc) · 1.86 KB
layout page_title description
azuredevops
AzureDevops: azuredevops_identity_user
Use this data source to access information about an existing users within Azure DevOps.

Data Source: azuredevops_identity_user

Use this data source to access information about an existing users within Azure DevOps On-Premise(Azure DevOps Server).

Example Usage

# Load single user by using it's principal name
data "azuredevops_identity_user" "contoso-user" {
  name = "contoso-user"
}

# Use MailAddress
data "azuredevops_identity_user" "contoso-user-upn" {
  name          = "[email protected]"
  search_filter = "MailAddress"
}

# Use AccountName
data "azuredevops_identity_user" "contoso-user-upn" {
  name          = "[email protected]"
  search_filter = "AccountName"
}

# Use DisplayName
data "azuredevops_identity_user" "contoso-user-upn" {
  name          = "Contoso User"
  search_filter = "DisplayName"
}

Argument Reference

The following arguments are supported:

  • name - (required) The PrincipalName of this identity member from the source provider.

  • search_filter - (Optional) The type of search to perform. Possible values are: AccountName, DisplayName, and MailAddress. Default is General.

Attributes Reference

The following attributes are exported:

  • id - The ID of the user.

  • descriptor - The Descriptor of the user.

  • subject_descriptor - The Subject Descriptor of the user.

Relevant Links

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minute) Used when retrieving the Identity Users.