Skip to content

UserId Criterion

The UserId Search Criterion searches for content based on the User ID.

Arguments

  • value - int(s) representing the User ID(s)

Example

PHP

1
$query->query = new Criterion\UserId([14]);

REST API

1
2
3
4
5
<Query>
    <Filter>
        <UserIdCriterion>14</UserIdCriterion>
    </Filter>
</Query>
1
2
3
4
5
"Query": {
    "Filter": {
        "UserIdCriterion": "14"
    }
}