5

I develop a workflow and i want to grant unique permission on item in list using sharepoint rest api

http://sp_site/_api/web/lists/getByTitle('Test')/items(1)/breakroleinheritance(copyRoleAssignments=true, clearSubscopes=true)

then

http://sp_site/_api/web/lists/getByTitle('Test')/items(1)/roleassignments/addroleassignment(principalid=20,roleDefId=1073741828) 

the rest service return exception

Value does not fall within the expected range

please advice

  • i see their is no single quotes in the Items(1)...could you please put that and try again – Waqas Sarwar MVP Mar 2 '15 at 18:31
  • Guess you would get another exception, but did you use POSTverb? – eirikb Mar 2 '15 at 20:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.