Skip to content

Commit 8cb6051

Browse files
member troubleshooting for groups
1 parent 19ea1a3 commit 8cb6051

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Modules/CIPPCore/Public/TenantGroups/Get-TenantGroups.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ function Get-TenantGroups {
159159
if ($GroupMembers) {
160160
foreach ($Member in $GroupMembers) {
161161
# Use indexed lookup instead of Where-Object
162+
if (!$Member.customerId) { continue }
162163
$Tenant = $TenantByCustomerId[$Member.customerId]
163164
if ($Tenant) {
164165
$MembersList.Add(@{

0 commit comments

Comments
 (0)