openfga / roadmap

OpenFGA Public Roadmap
2 stars 0 forks source link

API to retrieve all tuples for a user for a particular relationship and particular object type #8

Closed aaguiarz closed 1 year ago

aaguiarz commented 2 years ago

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>

andreadistefano commented 1 year ago

Hi, the link in your comment looks dead. I think it should point to this: Search with Permissions.

aaguiarz commented 1 year ago

This work was completed, you can check the documentation for the ListObjects endpoint here https://openfga.dev/docs/interacting/relationship-queries