Closed aaguiarz closed 1 year ago
Hi, the link in your comment looks dead. I think it should point to this: Search with Permissions.
This work was completed, you can check the documentation for the ListObjects endpoint here https://openfga.dev/docs/interacting/relationship-queries
In some scenarios like filtering or auditing, developers need to answer queries like "list all documents that user:X can read".
Depending on the use case, the problem can be solved with the existing APIs, as described in our Search with Permissions documentation, but sometimes having a new API would be more practical.
The API would look like:
Lookup(objectType, relation, user) --> List<ObjectID>