We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41cb7f9 commit 13c0523Copy full SHA for 13c0523
Modules/CIPPCore/Public/Functions/Get-CIPPTenantAlignment.ps1
@@ -101,7 +101,13 @@ function Get-CIPPTenantAlignment {
101
102
if ($Template.tenantFilter -and $Template.tenantFilter.Count -gt 0) {
103
# Extract tenant values from the tenantFilter array
104
- $TenantValues = $Template.tenantFilter | ForEach-Object { $_.value }
+ $TenantValues = $Template.tenantFilter | ForEach-Object {
105
+ if ($_.type -eq 'group') {
106
+ (Get-TenantGroups -GroupId $_.value).members.defaultDomainName
107
+ } else {
108
+ $_.value
109
+ }
110
111
112
if ($TenantValues -contains 'AllTenants') {
113
$AppliestoAllTenants = $true
0 commit comments