To delete a user from item level permissions using JSOM , use the following code.
var oUser=
clientContext.get_web().ensureUser('your name@yourcompany.com');
oListItem.get_roleAssignments().getByPrincipal(oUser).deleteObject(); // oListItem- List item reference.
clientContext.load(oListItem);
Happy coding !!!
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.