that's what the BulkCheck is for
# spicedb
y
that's what the BulkCheck is for
k
But what what I understand it requires ResourceId, same as CheckPermissionRequest right? So still I need to get the list of Ids first and then I can use CheckBulkPermission
Copy code
lookup-resource resource#view@user:U => ["r1", "r2", ...]
bulk-check resource:r1#edit@user:U resource:r1#delete@user:U resource:r2#edit@user:U  resource:r2#delete@user:U
Something like this correct? I'm asking if there's a way to get this data in a single request.
But from what you're saying it might not be possible
y
it's not, not as the API currently stands
you'd
ListResources
on a permission that encompasses all of the potential user actions, and then you'd
BulkCheck
for what the user can do with each of those things
k
Thank you so much, that's super helpful.
v
You may want to have a look at https://github.com/authzed/spicedb/issues/1505 and chime in with your requirements