Skip to content
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

Bulk permission check #1199

Open
inabhi9 opened this issue Apr 22, 2024 · 2 comments
Open

Bulk permission check #1199

inabhi9 opened this issue Apr 22, 2024 · 2 comments
Assignees
Labels
feature request New feature or request

Comments

@inabhi9
Copy link

inabhi9 commented Apr 22, 2024

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.

@inabhi9 inabhi9 added the feature request New feature or request label Apr 22, 2024
@karatekaneen
Copy link

karatekaneen commented May 24, 2024

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?

Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants