This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
UserMetadata Criterion¶
The UserMetadata
Search Criterion searches for content based on its creator or modifier.
Arguments¶
target
- UserMetadata constant (OWNER, GROUP, MODIFIER); GROUP means the user group of the content item's creatoroperator
- Operator constant (EQ, IN)value
- int(s) representing the User IDs or user group IDs (in case of the UserMetadata::GROUP target)
Limitations¶
UserMetadata
can be used on all search engines.
Example¶
PHP¶
1 |
|
REST API¶
1 2 3 4 5 6 7 8 9 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
Use case¶
You can use the UserMetadata
Criterion to search for blog posts created by the Contributor user group:
1 2 3 4 5 6 7 8 9 |
|