layout | page_title | description |
---|---|---|
azuredevops |
AzureDevops: azuredevops_identity_user |
Use this data source to access information about an existing users within Azure DevOps. |
Use this data source to access information about an existing users within Azure DevOps On-Premise(Azure DevOps Server).
# 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"
}
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
, andMailAddress
. Default isGeneral
.
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.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minute) Used when retrieving the Identity Users.