April 3, 2025
AzureDevOps using AzureAD groups
In case you need to use AzureAD groups inside if AzureDevops, consider this an example of how you could do this using OpenTofu (Terraform).
This will add AzureAD groups to your Azure DevOps Organization, which can be found under Settings/Permissions.
data "azuredevops_group" "target" { name = "Project Collection Administrators" } data "azuread_group" "main" { for_each = toset(["user-group-x", "admin-group-y"]) display_name = each.key } resource "azuredevops_group" "main" { for_each = data.azuread_group.main origin_id = each.
Read more