Skip to content

UserLogin Criterion

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

Arguments

  • value - string(s) representing the User logins(s)
  • (optional) operator - operator constant (IN, EQ, LIKE)

Limitations

Solr search engine and Elasticsearch support IN and EQ operators only.

Example

PHP

1
$query->query = new Criterion\UserLogin(['johndoe']);
1
$query->query = new Criterion\UserLogin('adm*', Criterion\Operator::LIKE);

REST API

1
2
3
4
5
<Query>
    <Filter>
        <UserLoginCriterion>johndoe</UserLoginCriterion>
    </Filter>
</Query>
1
2
3
4
5
"Query": {
    "Filter": {
        "UserLoginCriterion": "johndoe"
    }
}