Currently for Object Retrieval, if we want to request a list of items specific to the user, we must use a where clause.
let whereClause = "ownerId = 'ABC-123'";
let queryBuilder = Backendless.DataQueryBuilder.create().setWhereClause(whereClause);
Backendless.Data.of("Your_Table").find(queryBuilder)
Would it be possible to add a shorthand method such as:
Backendless.Data.of("Your_Table").findForCurrentUser()
that will only retrieve items with the user’s ownerID?
Hello @Brewhouse_Digital,
I can suggest you to use Owner Policy to control whether users can get access to the data they created.
Granting a permission for an operation in Owner Policy, guarantees that the objects owned by the current user will be allowed access for the specified operations.
You can find the Owner Policy
setting in the table Permissions
tab.
Regards,
Olha
I think there might be some confusion. This was just an idea for a possible new feature for the database class.