Permify / permify

An open-source authorization as a service inspired by Google Zanzibar, designed to build and manage fine-grained and scalable authorization systems for any application.
https://docs.permify.co/
Apache License 2.0
4.72k stars 206 forks source link

Bulk permission check #1199

Open inabhi9 opened 5 months ago

inabhi9 commented 5 months ago

Is your feature request related to a problem? Please describe. We often require to query multiple permission on multiple resource for a subject and currently Permify doesn't have any way to do it in single request and multiple requests are not efficient.

Describe the solution you'd like It would be great if Permify can provide an endpoint for bulk permission check.

Describe alternatives you've considered I checked subject permission list and found it uses same check() internally for all the actions for a resource and a subject which is not the best but better than multiple requests in some cases.

However, it's great if Permify can implement some more efficient technique to do reverse lookup.

karatekaneen commented 4 months ago

Anyone knows what would be required to make this work in the code? Had a quick look but not sure if it's as simple as adding a new endpoint where you can pass tuples and get an array/stream back? Which internally only is a wrapper around the endpoint for the single lookup? Or is there a more efficient way to do this?

featurebase-for-github[bot] commented 1 month ago

This issue is linked to our feedback platform. For feedback and updates, please visit this link.