Case insensitive search in API | Community
Skip to main content
February 21, 2023
Solved

Case insensitive search in API

  • February 21, 2023
  • 1 reply
  • 1353 views

Hello! I am trying to search by user email address using the Workfront API. So far this is what I have: 

https://<DOMAIN>.workfront.com/attask/api/v15.0/USER/search?emailAddr=<EMAIL>

This works as long as the address matches exactly to what is in the system, case and all.

Are there any modifiers to the API search that will allow for insensitive results? 

 

Thank you!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Richard_Le_

Hi,

 

Try using the following instead:

 

https://<DOMAIN>.workfront.com/attask/api/v15.0/USER/search?emailAddr=<EMAIL>&emailAddr_Mod=cieq

 

Interestingly cieq (case insensitive equals) is not referenced as an accepted modifier in the API documentation here, but it appears to work when I run a quick test in my instance.

 

Let me know how you get on.

 

Best Regards,

Rich. 

1 reply

Richard_Le_Community AdvisorAccepted solution
Community Advisor
February 21, 2023

Hi,

 

Try using the following instead:

 

https://<DOMAIN>.workfront.com/attask/api/v15.0/USER/search?emailAddr=<EMAIL>&emailAddr_Mod=cieq

 

Interestingly cieq (case insensitive equals) is not referenced as an accepted modifier in the API documentation here, but it appears to work when I run a quick test in my instance.

 

Let me know how you get on.

 

Best Regards,

Rich. 

mgjllAuthor
February 21, 2023

Thanks so much! That did the trick. I also did not see that list of modifiers in the documentation so thank you for including those!

Community Advisor
February 21, 2023

Awesome, I'm glad I could help.

 

Here is a link to an article on experience league that references all of the modifiers that can be used in reporting, I suspect that most of these will also work when making an API call.

 

If my answer resolved your query, please mark it as correct so that others know that the solution works in the future.

 

Best Regards,

Rich