hey everyone! sorry if this has already been cover...
# spicedb
w
hey everyone! sorry if this has already been covered but quick question: I've got a schema that has users, teams, and then a few other objects (like folders, projects, etc...). I'd like to include in an API an endpoint that would allow a user to get all the things that they have access to and their relation to that thing. I'd like this endpoint to return a list of objects
{thing_id:str, relation:str}
Initially I thought
readRelationships
would work but it doesn't handle derived inheritance (i.e. if a folder is accessible by a team but not specifically that use.) Then I looked at
lookupResources
but it doesn't return the relation (just the permissionship_has_permission flag) so I'd potentially have to make another set of queries to get the relationship. Any tips/tricks or guidance on the above?