Hi @LetMeTest,
To do this, you can use the following API to give the user access to a specific table:
Method: PUT
Request URL: https://xxxx.backendless.app/api/data/<tableName>/permissions/<permissionType>
Request body:
{
"permission": <permission>,
"user":<objectId>
or
"role":<role-name>
}
In the request URL, you must specify the table name in <tableName>
and GRANT
or DENY
in <permissionType>
.
In the body of the request:
- For the
permission
parameter, specify one of the following operations:
ADD,
UPDATE,
FIND,
REMOVE,
DESCRIBE,
PERMISSION,
LOAD_RELATIONS,
ADD_RELATION,
DELETE_RELATION,
UPSERT
Or instead of a specific operation, you can use *
to change permissions for all operations.
- The body should contain
user
(object id) orrole
(role name) property. If both presentrole
will be ignored.
Regards
Nazar