Solved

Is there an API endpoint where you can get the Groups that have access to a Collection?

  • 23 February 2021
  • 4 replies
  • 33 views

Userlevel 2
Hi everyone! Anyone knows if there is an API endpoint where I can get the groups that have access to a collection? I tried all options on API reference page and the Guru SDK
icon

Best answer by Dillon Head 23 February 2021, 23:30

View original

4 replies

Userlevel 3
I believe the easiest way to figure this out is to go the other way and check which collections a group has access to. If you looped over all of your groups, you could create a new collection object with the associated groups. Just guessing., but this might be similar to the way that the collection management page works. ```Get the IDs: https://api.getguru.com/api/v1/groups and then: https://api.getguru.com/api/v1/groups/groupID/collections``` Hope this helps!
Userlevel 4
Badge
Nailed it @dillon :thankyou:
Userlevel 2
Dillon, you are the #1 thank you very much! DidnĀ“t know of the existence of that last endpoint!
Userlevel 2
And thank you Mary for being always there haha

Reply