Request: Grant/Deny object ACL permissions for multiple users

Hello,

We’re currently implementing a kind of sharing system in our app and we’re looking into using the permissions API to allow users to grant or deny access to their data.

According to the docs, you can update permissions on single users at a time or all users. For our app, it will likely be common to have to update many permissions often, so updating permissions on a user-by-user basis will be a slow process.

Would it be possible to implement a way to provide an array of users, similar to how it can be done with SQL?

Thank you!

Hi @Nathan_Cousins ,

Sorry for long delay with response. I have discussed your problem with the team. We will add route which will allow to update multiple ACL permissions for the multiple users per one request. Internal ticket for reference is BKNDLSS-28892. We will notify you in this topic when this feature will be available.
As a temporal solution you can use existing route.

Regards, Andriy

1 Like

That’s great, @Andriy_Konoz! Thank you for the response, our team is looking forward to it!

Hi, @Nathan_Cousins

First of all, we apologize for the long wait. We have updated the cloud servers with the new route discussed above. The new signature is as follows:

PUT            /:applicationId/:apikey/data/:tableName/permissions/:objectId/bulk
Body:
[
  {
    userId: String // User ID
    permission: String,
    permissionType: String
  },
  ...
]

List of available permissions : UPDATE, FIND, REMOVE, UPSERT, ADD_RELATION, DELETE_RELATION, LOAD_RELATIONS
List of available permissionType : GRANT, DENY
This functionality is currently only available in the REST API. Our developers will implement it in all other SDKs shortly. Can you confirm that it solved your issue?

Regards,
Marina