Skip to content

Commit 5d2b8f2

Browse files
committed
count for guests
1 parent 8a6ebff commit 5d2b8f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Function Invoke-ListUserCounts {
4646
@{
4747
id = 'Guests'
4848
method = 'GET'
49-
url = "/users?`$count=true&`$top=1&`$filter=userType eq 'Guest'"
49+
url = "/users/`$count?`$top=1&`$filter=userType eq 'Guest'"
5050
headers = @{
5151
'ConsistencyLevel' = 'eventual'
5252
}
@@ -82,7 +82,7 @@ Function Invoke-ListUserCounts {
8282
'Users' { $Users = $UsersCount }
8383
'LicUsers' { $LicUsers = $Count }
8484
'GAs' { $GAs = $Count }
85-
'Guests' { $Guests = $Count }
85+
'Guests' { $Guests = $UsersCount }
8686
}
8787
}
8888

0 commit comments

Comments
 (0)