Sunday, 17 March 2019

Lists spfx breakRoleInheritance using pnp



private BreakInheritPermissionOnSPList():void
{
pnp.sp.web.lists.getByTitle("Employee").breakRoleInheritance(true)
.then(function(response)
{
console.log("Permission breaked successfully");
}).catch(function(exception)
{
alert("Something went wrong :"+exception);
});
}

No comments:

Post a Comment