Farhad Nowzari
01/04/2024, 10:22 AMread?
let's say the user:subject1 has read permission to book objectType but there is no relation instance created yet.
I want to pass user:subject1 and read and get all the types which the subject1 can potentially have read permission to. Is this possible?vroldanbet
01/04/2024, 10:38 AMread permission and where the user has read access to at least 1 resource?
This is not possible today, but I could see this being possible with a mixture of reflection and LookupResources.
- Determine all the resources that have a permission named read with Reflection API (see proposal https://github.com/authzed/spicedb/issues/1505)
- Issue calls for user:subject1 and LookupResources over each one of the resource types identified as having read
Another option that could make the above easier to run is to have the equivalent of BulkPermissionCheck for LookupResourcesFarhad Nowzari
01/04/2024, 10:40 AM