I am having trouble with the custom attribute search for GET /{realm}/users

When I use “userAccount”: “true” in the REST call for get users it does not filter on that attribute on the user. The attribute is userAccount and true for the value

Is there something I am missing? Is the syntax I am using wrong? Is there an additional setting for a client that needs to be used?

Specifically from the 16.1 documentation

query q optional A query to search for custom attributes, in the format ‘key1:value2 key2:value2’ string

Which I assume lines up with:

Public static final SearchableModelField ATTRIBUTE = new SearchableModelField<>(“attribute”, String[].class);

Managed to figure this out.