3.22 SiteCollectionUserCount

Use this Knowledge Script to monitor the number of users in a site collection.

This Knowledge Script monitors the three user types that SharePoint sites support: AllUsers, SiteUsers, and Users. The following list describes each type:

  • AllUsers: Obtains the collection of users that represents all users who are either members of the site, or who have browsed to the site as authenticated members of a domain group in the site.

  • SiteUsers: Obtains the collection of all users that belong to the site collection.

  • Users: Obtains the collection of users that are explicitly assigned permissions in the Web site.

For more information about SharePoint user types, see the Microsoft SharePoint documentation.

This Knowledge Script raises an event when the count for AllUsers, SiteUsers, or Users exceeds the threshold.

3.22.1 Resource Objects

SharePoint Server: Web Applications

3.22.2 Default Schedule

The default interval for this script is every hour.

3.22.3 Setting Parameter Values

Set the following parameters as needed:

Description

How to Set It

General Settings

Job failure event notification

Event severity when job fails

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the job fails to monitor the number of users in a site collection. The default is 5.

Monitor Number of Users in a Site Collection

Event Notification

Raise event when the All Users count exceeds the threshold?

Select Yes to raise an event if the All Users count exceeds the threshold. The default is Yes.

Event severity when the All Users count exceeds the threshold

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the All Users count exceeds the threshold you set. The default is 10.

Threshold -- Maximum count for All Users

Specify the maximum count for All Users before an event is raised. The default is 1000.

Raise event when the Site Users count exceeds the threshold?

Select Yes to raise an event if the Site Users count exceeds the threshold. The default is Yes.

Event severity when the Site Users count exceeds the threshold

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the Site Users count exceeds the threshold you set. The default is 15.

Threshold -- Maximum count for Site Users

Specify the maximum count for Site Users before an event is raised. The default is 1000.

Raise event when the Users count exceeds the threshold?

Select Yes to raise an event if the Users count exceeds the threshold. The default is Yes.

Event severity when the Users count exceeds the threshold

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the Users count exceeds the threshold you set. The default is 25.

Threshold -- Maximum count for Users

Specify the maximum count for Users before an event is raised. The default is 1000.

Data Collection

Collect data for the All Users count?

Select Yes to collect data for charts and reports. If enabled, data collection returns the All Users count for the site collection. The default is unselected.

Collect data for the Site Users count?

Select Yes to collect data for charts and reports. If enabled, data collection returns the Site Users count for the site collection. The default is unselected.

Collect data for the Users count?

Select Yes to collect data for charts and reports. If enabled, data collection returns the Users count for the site collection. The default is unselected.