Represents the member criteria to use in Experience Cloud
site moderation rules. This type extends the
Metadata metadata type and inherits its
fullName field..
Where
possible, we changed noninclusive terms to align with our company value of Equality. We
maintained certain terms to avoid any effect on customer
implementations.
File Suffix and Directory Location
UserCriteria components have the suffix
site_name.user_criteria_developer_name.userCriteria and are stored in
the UserCriteria folder.
Version
UserCriteria components are available in API version 39.0 and later.
Special Access Rules
To view, create, edit, and delete moderation rules, you need the Manage Experiences or
Create and Set Up Experiences permission. As of Spring ’20 and later, only users with
permission to edit moderation rules can access this object.
Fields
| creationAgeInSeconds |
int |
If specified, includes only users that were
created within a specific time frame.
|
| description |
string |
The description of the user criteria. |
| lastChatterActivityAgeInSeconds |
int |
If specified, includes only
members that have posted or commented in the Experience Cloud site within a
specific time frame. |
| masterLabel |
string |
Name of the user criteria. |
| userTypes |
NetworkUserType enumeration ( of type string) |
The member type to use in moderation rules. Valid
values are:
- Internal
- Customer
- Partner
|
Declarative Metadata Sample Definition
The following is an example of a UserCriteria component.