https://authzed.com logo
#spicedb
Title
# spicedb
a

adampwells

04/07/2022, 10:07 PM
Hi All. I'm just starting out with SpiceDB, and have a schema that I am happy with, and can authorize my users. I want to build a simple GUI for managing users and groups. Is there a simple way of using the API to fetch the list of a given resource? Eg the list of all groups in the system, or all users. I can call
ReadRelationships
with a relationship filter that is simply the
resourceType
and then iterate over all the results to retrieve the distinct set of resources of a given type, but this seems inefficient - ie I will get one result for every 'user' even if I am only looking for the three 'group's that exist. Is there a better way that I am missing?