Showing posts with label pnp remove List permission. Show all posts
Showing posts with label pnp remove List permission. Show all posts

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);
});
}