supported expression for filter and search for getting user Skip to main content
https://support.okta.com/help/answers?id=9062a000000quemqak&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Jaskeerat SinghJaskeerat Singh 

supported expression for filter and search for getting user

Hi OKTA team,

I am using java sdk to search for the user using Client class method 'listUsers(String q, String filter, String format, String search, String expand)' . What will be the supported expression for filter and search parametes to search a user using a particular attribure in OKTA, say attribute be "employeenumber" and values be "1234567".Please help me in providing the exact search/filter for the mentioned query.

Regards
Jaskeerat S.
Jerrell GaryJerrell Gary (Okta, Inc.)
Hello Jaskeerat,

You will have to use the same expression as used in the API KB article listed here -  https://developer.okta.com/docs/api/resources/users.html#list-users-with-a-filter.

For example, the expression you will input "employeeNumber eq 1234567".

If you need additional assistance please open a support case. 
Jaskeerat SinghJaskeerat Singh
This is working now.Thanks. I red the API documents that says filter parameter is applicable for a subset of attributes. So i have to use search paramter to list users with custom attributes.
However when I use search parameter, I am getting following error despite being super admin in OKTA.

com.okta.sdk.resource.ResourceException: HTTP -1, Okta E0000015 (You do not have permission to access the feature you are requesting)

 
Jaskeerat SinghJaskeerat Singh
Okta team,

It will be very helpful if you can come up with some answer or fix for this

Thanks
Jaskeerat S.