I followed this tutorial and webinar as well about security.
I am able to work out using .net
DataPermission.Find find = new DataPermission.Find();
find.GrantForUser<BackendlessUser>(us.UserId, us); //Granting user
find.GrantForRole<BackendlessUser>("IsKid", us); //Granting to Role
I am looking similar functionality using javascript. I tried this but no luck.
var per = DataPermissions.Find();
per.grantUser( user1.UserId, async);
Or Any other alternative ?
Thanks
Sudheer