Skip to content

IsUserEnabled Criterion

The IsUserEnabled Search Criterion searches for user accounts that are enabled or disabled.

Arguments

  • (optional) value - bool representing whether to search for enabled (default true) or disabled user accounts

Limitations

The IsUserEnabled Criterion is not available in Solr or Elastic search engines.

Example

PHP

1
$query->query = new Criterion\IsUserEnabled();

REST API

1
2
3
4
5
<Query>
    <Filter>
        <IsUserEnabledCriterion>true</IsUserEnabledCriterion>
    </Filter>
</Query>
1
2
3
4
5
"Query": {
    "Filter": {
        "IsUserEnabledCriterion": "true"
    }
}