
JobJ.57547 (PSEG NJ) asked a question.
Hello,
In my UD, I have the below attributes.
Primary Phone,
Secondary Phone numbers (comma separated),
First Name,
Last Name
Now, I need to form a search condition which would fetch users if it would match (primary phone or one of the secondary phone number) and first name and last name.
Basically, Data that matches
(( Primary Phone = <phone> OR Secondary Phone CONTAINS <phone> ) AND First Name = <fn> AND Last Name =<ln>)
Values inside <> are user inputs.
Does Okta support this kind of operation ?
Thanks and Regards,
Robert Antony

Hello,
Thank you for posting on the Okta Community.
Currently the articles that we have available for user search are the following:
https://developer.okta.com/docs/api/resources/users/#list-users-with-a-filter
https://developer.okta.com/docs/api/resources/users/#list-users-with-search
Related to creating conditions on various atributes this is the example that I've found most relevant:
search=profile.department eq "Engineering" and (created lt "2014-01-01T00:00:00.000Z" or status eq "ACTIVE")
However there are currently no options to use the co (CONTAINS) operator together with eq (=).
Best regards,
Cosmin Nita
Okta Global Customer Care