We are trying to query crowd for inactive users:
{code}
Collection<searchrestriction> restrictions = new ArrayList<searchrestriction>();
TermRestriction<boolean> test = new TermRestriction<boolean>(UserTermKeys.ACTIVE, MatchMode.EXACTLY_MATCHES, new Boolean(false));
restrictions.add(test);
List<user> tmp = crowdClient.searchUsers(Combine.allOf(restrictions), 0, 1000);
{code}
This give the following error:
{code}
2011-10-31 11:05:23,804 ERROR CrowdUserAccessorDaoImpl:159 - Operation Failed Exception with message Boolean restrictions for property active are not supported
com.atlassian.crowd.exception.OperationFailedException: Boolean restrictions for property active are not supported
at com.atlassian.crowd.integration.rest.service.RestCrowdClient.handleCommonExceptions(RestCrowdClient.java:1084)
at com.atlassian.crowd.integration.rest.service.RestCrowdClient.searchUsers(RestCrowdClient.java:466)
at aero.blue.user.dao.crowd.CrowdUserAccessorDaoImpl.fetchUsers(CrowdUserAccessorDaoImpl.java:147)
{code}
Note that we have the same issue with Date restrictions.