Object ACL Permissions in Javascript

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

Hi Sudheer,

the syntax is next:

Backendless.Data.Permissions.FIND.grantUser(user.objectId, dataObject[, asyncFn]);

Hope it helps. We will update our docs soon.

Regards,
Stanislav