Expand my Community achievements bar.

SOLVED

Case insensitive search in API

Avatar

Level 1

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!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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. 

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

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. 

Avatar

Level 1

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!

Avatar

Community Advisor

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

Avatar

Level 1

Very helpful information. Thanks again for your time, Rich!