Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
currently, the data azuredevops_users does not expose the descriptor.
The descriptor is needed to add the user via azuredevops_group_membership to a group and there is no way to get it if the user is not created within the project.
New or Affected Resource(s)
data azuredevops_users
Potential Terraform Configuration
data "azuredevops_users" "current" {
provider = azuredevops.collection
origin = "aad"
origin_id = <REDACTED>
}
data "azuredevops_group" "example" {
project_id = "example"
name = "Project Administrators"
}
resource "azuredevops_group_membership" "example" {
group = data.azuredevops_group.example.descriptor
members =
[
data.azuredevops_users.current.descriptor
]
mode = "add"
}
Community Note
Description
currently, the data azuredevops_users does not expose the descriptor.
The descriptor is needed to add the user via azuredevops_group_membership to a group and there is no way to get it if the user is not created within the project.
New or Affected Resource(s)
Potential Terraform Configuration
References