Get Enterprise Groups function doesn't return expected values with name parameter

SOLVED
Go to solution
Highlighted
New Contributor

Get Enterprise Groups function doesn't return expected values with name parameter

I have been testing implementation of sending the name parameter with the Get Enterprise Groups API call. The documentation states that I can include the parameter "name" and will "Only return groups whose name contains the given string (case insensitive)" 

 

My query does in fact reduce the results returned, but does not appear to follow my search query. 

For example, let's say my groups are:

1) Test Group 01

2) Test Group 02

3) Test Group Users

4) Onboarding Users Set

 

My query in the name field is "Test Group 01," and my results seem to include #'s 1, 2, and 3. I'm not sure if I'm using the endpoint incorrectly, or if I'm assuming the API is matching against each separate word in the string that is sent. 

 

Does anyone have any clarification? 

1 REPLY
New Contributor

Re: Get Enterprise Groups function doesn't return expected values with name parameter

As a follow up to this post, I solved the issue by including quotes in the string I was passing to the endpoint.

 

Thank you to the Box staff that helped me figure out the solution!