Skip to content

Commit 63ac6f0

Browse files
committed
Update Invoke-ListUserCounts.ps1
1 parent 5d2b8f2 commit 63ac6f0

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
@@ -30,7 +30,7 @@ Function Invoke-ListUserCounts {
3030
@{
3131
id = 'LicUsers'
3232
method = 'GET'
33-
url = "/users?`$count=true&`$top=1&`$filter=assignedLicenses/`$count ne 0"
33+
url = "/users/`$count?`$top=1&`$filter=assignedLicenses/`$count ne 0"
3434
headers = @{
3535
'ConsistencyLevel' = 'eventual'
3636
}
@@ -80,7 +80,7 @@ Function Invoke-ListUserCounts {
8080

8181
switch ($_.id) {
8282
'Users' { $Users = $UsersCount }
83-
'LicUsers' { $LicUsers = $Count }
83+
'LicUsers' { $LicUsers = $UsersCount }
8484
'GAs' { $GAs = $Count }
8585
'Guests' { $Guests = $UsersCount }
8686
}

0 commit comments

Comments
 (0)