Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 2.03 KB

identity_users.html.markdown

File metadata and controls

61 lines (41 loc) · 2.03 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 instead of principal name.
data "azuredevops_user" "contoso-user-upn" {
  name = "[email protected]"
  search_filter = "MailAddress"
}


# Use MailAddress instead of principal name.
data "azuredevops_user" "contoso-user-upn" {
  name = "[email protected]"
  search_filter = "MailAddress"
}

# Use DisplayName instead of principal name.
data "azuredevops_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. Default is General. Possible values are AccountName, DisplayName, and MailAddress.

Attributes Reference

The following attributes are exported:

  • user - A set of existing users in your Azure DevOps Organization with details about every single user which includes:

  • id - The ID is the primary way to reference the identity subject while the system is running. This field will uniquely identify the same identity subject across both Accounts and Organizations.

  • name - This is the PrincipalName of this identity member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the identity member.

Relevant Links