Is there a way to use Okta Expression Language in a filter or search

I have a custom field in the profile which is an array.

I want to get all the users whose ‘custom_field’ is not empty.

Something like:

https://company.okta.com/api/v1/users?search=Arrays.isEmpty(profile.custom_field)==false

Is this possible?

It isn’t possible.

You can check the presence of a value by:
{{url}}/api/v1/users?limit=25&search=profile.custom_field pr

This will only work if the value is not null, though. I think this is an awesome enhancement request, can you log an idea here: https://support.okta.com/help/oktaideas

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.