About API Skip to main content
https://support.okta.com/help/answers?id=9062a000000quyiqa0&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:
Prakash GairePrakash Gaire 

About API

Can someone please help me with API call that returns all user with login attribute that ends with @gtest.com?
Darron HellmannDarron Hellmann (Okta)
Hi Prakash

I've provided our developer documentation on our list users with search. An example call might look like...

/api/v1/users?search=profile.department eq "@gtest.com"

https://developer.okta.com/docs/api/resources/users.html#list-users-with-search
 
Prakash GairePrakash Gaire
{{url}}/api/v1/users?search=profile.login eq "12345@gtest.com" if i use like this it works and return desired value, but if i use {{url}}/api/v1/users?search=profile.login eq "@gtest.com",
it returns "[]" this. 
Prakash GairePrakash Gaire

I can get desired response if i know the exact attribute, but i need to know the number of users provisioned with
"-----@gtest.com". The okta attribute is "login".