Users.getCounts (Method)

Returns a structure containing information on various user counts such as expired, deleted, number of active, and total number of users.

Returns:

Users_GetCounts_Result (struct)

Each row of the returned query results has the following fields:

Field Name Type Description
ActiveCount NonNegativeInteger The number of active users.
AdminCount NonNegativeInteger The number of users for which the current user is an administrator.
AdminVisibleCount NonNegativeInteger The number of users visible on the User Admin page to the current user.
ContributorCount NonNegativeInteger The number of users that are contributors.
DedicatedContributorCount NonNegativeInteger The number of users that are dedicated contributors.
DeletedCount NonNegativeInteger The number of deleted users.
ExpiredCount NonNegativeInteger The number of expired users.
NoAdminCount NonNegativeInteger The number of users that do not have an administrator.
NonContributorCount NonNegativeInteger The number of users that are not contributors.
PasswordExpiredCount NonNegativeInteger The number of password expired users.
SharedContributorCount NonNegativeInteger The number of users that are shared contributors.
TotalCount NonNegativeInteger The number of users.

Context:

License Requirements None
Permission Requirements ContributorOrServerCode
Deny Context None
Require Context None
Author Lock (not required)
Transaction Logging Transaction logging is disabled for this method
Customization Customization is not supported for this method.

Error Codes:

None

Notes:

None