-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for reverse queries for #1215
Comments
Hi @fsedano! Thanks for asking. Right now we do not have it yet, however it is an upcoming feature in our roadmap as ListUsers Until we have that endpoint, you can get the same result by recursively calling Expand to re-build the graph permissions on your end and get the list of users with access. You can see that being done in the Playground for example when you query something like: Canonical did the same by wrapping Expand: https://github.com/canonical/ofga/blob/main/client.go#L490-L522 |
It appears this issue has been stale for at least 14 days 🗓️. If no action is taken the maintainer team may consider closing the issue. Please reach out if you need feedback or follow up actions from the maintainer team. |
This is in our roadmap already |
@aaguiarz We discussed about this on Kubecon today, from what I understood is already shipping? Your response above suggests it's on roadmap. |
Hi @fsedano , what we shipped is ListObjects, we are currently working on ListUsers, the RFC is here https://github.com/openfga/rfcs/blob/main/20231214-listUsers-api.md |
Summary
Is there a way to do reverse lookup of users and subjects?
I'm evaluating OpenFGA against SpiceDB. One very nice feature in SpiceDB is it supports both LookupResources and LookupSubjects. I only saw 'list-objects' API in OpenFGA (that would be equivalent of 'LookupResources) but I could not find the opposite.
I.e. I want both 'which users have READER relation with DOC1' and 'Which docs can USER1 access as READER'
The text was updated successfully, but these errors were encountered: