Skip to content

Commit 66bc54c

Browse files
committed
changes
1 parent 63ac6f0 commit 66bc54c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ListUserCounts.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Function Invoke-ListUserCounts {
3838
@{
3939
id = 'GAs'
4040
method = 'GET'
41-
url = "/directoryRoles/roleTemplateId=62e90394-69f5-4237-9190-012177145e10/members?`$count=true"
41+
url = "/directoryRoles/roleTemplateId=62e90394-69f5-4237-9190-012177145e10/members/`$count"
4242
headers = @{
4343
'ConsistencyLevel' = 'eventual'
4444
}
@@ -75,13 +75,12 @@ Function Invoke-ListUserCounts {
7575

7676
# All requests succeeded, extract the counts
7777
$BulkResults | ForEach-Object {
78-
$Count = $_.body.'@odata.count'
7978
$UsersCount = $_.body
8079

8180
switch ($_.id) {
8281
'Users' { $Users = $UsersCount }
8382
'LicUsers' { $LicUsers = $UsersCount }
84-
'GAs' { $GAs = $Count }
83+
'GAs' { $GAs = $UsersCount }
8584
'Guests' { $Guests = $UsersCount }
8685
}
8786
}

0 commit comments

Comments
 (0)