File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Modules/CIPPCore/Public/GraphHelper Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ function Get-Tenants {
4242 $IncludedTenantFilter = [scriptblock ]::Create(" `$ _.customerId -eq '$TenantFilter '" )
4343 $RelationshipFilter = " and customer/tenantId eq '$TenantFilter '"
4444 } else {
45- $Filter = " {0} and defaultDomainName eq '{1}'" -f $Filter , $TenantFilter
46- $IncludedTenantFilter = [scriptblock ]::Create(" `$ _.defaultDomainName -eq '$TenantFilter '" )
45+ $Filter = " {0} and defaultDomainName eq '{1}' -or initialDomainName eq '{1}' " -f $Filter , $TenantFilter
46+ $IncludedTenantFilter = [scriptblock ]::Create(" `$ _.defaultDomainName -eq '$TenantFilter ' -or `$ _.initialDomainName -eq ' $TenantFilter ' " )
4747 $RelationshipFilter = ' '
4848 }
4949 } else {
You can’t perform that action at this time.
0 commit comments