Filter Groups api profile name. Skip to main content
https://support.okta.com/help/answers?id=9060z00000078acqai&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:
Travis VliegenTravis Vliegen 

Filter Groups api profile name.

Hello, 

  Is there a way to filter groups using 'ends with'? I am trying to find all groups where the name ends in specific pattern. 

ex/ 
{{url}}/api/v1/groups?filter=profile.name ew ".paf.csr.all"

This returns : "errorCode":"E0000031","errorSummary":"Invalid search criteria."
Evan AlterEvan Alter (Okta, Inc.)
Travis -
The group search API function currently performs a startsWith match; it does not support endsWith.

https://developer.okta.com/docs/api/resources/groups#search-groups

A possible workaround would be to get and cache all of the group objects locally within your application and then search locally through the cache objects via your code to return the exact matching group name.

Does this help?

Evan Alter
Okta Global Customer Care
 
Travis VliegenTravis Vliegen
Hey, Yeah, that's what I ended up doing. I was just curious if there was a simpler way. Thanks,