private BreakInheritPermissionListItem():void
{
pnp.sp.web.lists.getByTitle("Employee").items.getById(9)
.breakRoleInheritance(true).then(function(response)
{
console.log("Item Permission breaked successfully");
}).catch(function(exception)
{
alert("Something went wrong :"+exception);
});
}
No comments:
Post a Comment