careful-honey-27437
06/03/2025, 7:02 PMbrief-egg-61061
06/03/2025, 7:02 PMbrief-egg-61061
06/03/2025, 7:03 PMaccess
to the file with ID ec788a82-a12e-45a4-b906-3e69f78c94e4
in the files
namespace. You would expand the subject set files:ec788a82-a12e-45a4-b906-3e69f78c94e4#access
. The result will show all users (subject_ids) with access, and why they have it. Example expansion tree: ∪ ec788a82-a12e-45a4-b906-3e69f78c94e4#access ├─ ∪ ec788a82-a12e-45a4-b906-3e69f78c94e4#owner │ ├─ ☘ demeter ├─ ☘ athena
In this example, both demeter
and athena
have access to the file, either directly or via ownership [A basic, down-to-earth full feature example](https://www.ory.sh/docs/keto/examples/olymp-file-sharing#a-basic-down-to-earth-full-feature-example). API Reference: - [Expand API: display who has access to an object](https://www.ory.sh/docs/keto/guides/expand-api-display-who-has-access) - [Keto API Concepts: Expand subject sets](https://www.ory.sh/docs/keto/concepts/api-overview) Summary: Use the Expand API to get a tree of all subject_ids with access to a specific object. This is the recommended and supported way to audit and display access in Ory Keto.