Set unique permission using SharePoint Rest API

https://your_sp_site.sharepoint.com/_api/web/lists/getByTitle(‘Test’)/breakroleinheritance(copyRoleAssignments=true, clearSubscopes=true)
https://your_sp_site.sharepoint.com/_api/web/lists/getByTitle(‘Test’)/roleassignments/addroleassignment(principalid=20,roleDefId=1073741828)

 

Reference from :

http://spsite.pro/Blog/Post/3/SharePoint-2013-REST-API-%E2%80%93-How-to-set-Unique-Permissions-(Item-Level-Permissions)#disqus_thread

http://sharepoint.stackexchange.com/questions/113317/manage-file-permissions-using-rest-api

https://msdn.microsoft.com/en-us/library/office/dn495392.aspx

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: