About API Skip to main content
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
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"

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".