Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check if a group exist using "filter" not "q" #88

Open
fas3r opened this issue Mar 2, 2019 · 3 comments
Open

check if a group exist using "filter" not "q" #88

fas3r opened this issue Mar 2, 2019 · 3 comments

Comments

@fas3r
Copy link

fas3r commented Mar 2, 2019

Hello,

Is there a way to check that a group exist using "filter" instead of "q" with listGroups() based on the "profile name " ?

I tried profile.name but it returns an error.

Thanks.

@kevlened
Copy link

kevlened commented Mar 4, 2019

The docs only indicate filtering on the following properties:

  • type
  • lastUpdated
  • lastMembershipUpdated
  • id

Filtering by name isn't supported or isn't doc'd. It's not clear why q is insufficient for you, but I imagine you want to combine it with other filters. If so, you can always do two queries: one to get the id, and another to filter with the id.

@fas3r
Copy link
Author

fas3r commented Mar 5, 2019

Hello,

The problem with q is that it return all the groups starting with the name that you want to lookup/find

Example you query my.group.1 and you have my.group.1, my.group.11, my.group.111 , it will return all of them, not the exact match, or I missed something.

Thanks

@brettpappas
Copy link

I would love to figure out a way to fetch a group by it's profile name also. I have the same problem as you where I get multiple results when use "q=GroupName" since a number of our groups are often prefixed the same. We currently are stuck with fetching the entire group list (over 6mb) and then parsing that for an exact match (not efficient at all).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants