We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19ea1a3 commit 8cb6051Copy full SHA for 8cb6051
1 file changed
Modules/CIPPCore/Public/TenantGroups/Get-TenantGroups.ps1
@@ -159,6 +159,7 @@ function Get-TenantGroups {
159
if ($GroupMembers) {
160
foreach ($Member in $GroupMembers) {
161
# Use indexed lookup instead of Where-Object
162
+ if (!$Member.customerId) { continue }
163
$Tenant = $TenantByCustomerId[$Member.customerId]
164
if ($Tenant) {
165
$MembersList.Add(@{
0 commit comments