https://www.ory.sh/ logo
#talk-keto
Title
# talk-keto
v

victorious-flower-63171

11/05/2021, 10:25 AM
Hello, in Keto is there a way to list all the objects accessible by a user ? Something like
keto expand
but the other way around ?
s

steep-lamp-91158

11/05/2021, 10:48 AM
it would theoretically be possible, but is not implemented because it is usually not needed see this section for the reasoning why https://www.ory.sh/keto/docs/guides/list-api-display-objects#application-context and maybe also https://github.com/ory/keto/issues/721
what specific usecase do you have?
the TL;DR is that such an API will be very resource-intense and we will have to decide with caution how it should work and what it should be used for
v

victorious-flower-63171

11/05/2021, 10:56 AM
We are a cloud provider, a user can have access to many resources, some that he owns, some that he does not. In the dashboard (or where appropriate) we want to display a list of the resources a user has an access to
s

steep-lamp-91158

11/05/2021, 11:21 AM
In that case:
Usually the application has some context to determine what tuples to query anyway. That could be e.g. knowledge of the structure of subject sets like depth or hierarchy, or the UI context, like a "My Items" view which should probably contain other objects than a "My Organizations" or "Shared with Me" views.
2 Views