1
  https://[sitesname]/sites/dev/_api/web/lists/getbytitle('listname')/items(4)/roleassignments/addroleassignment(principalid=17,roledefid=1073741826)

I called the above web service in the Sharepoint Designer, and I got the below response

{"odata.error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have permission to perform this action or access this resource."}}}

I have checked the running account for this workflow have a FULL CONTROL and Limited ACCESS permission to this item.

0

Limited access is not a permIssion which will give you read access. Moreover you are trying to put item level permIssion which in turn would require full control. You should add full control to the item or you should call the web service in an app step

  • Add full control to the workflow executor or full control to the list item? – user48429 Nov 9 '15 at 7:49
  • To the list item – Taran Goel Nov 9 '15 at 7:52
  • the response code become :bad request. – user48429 Nov 9 '15 at 9:32
  • what all steps are you following? You need to first break the permission and only then add roles!. please refer this: sharepoint.stackexchange.com/questions/153979/… – Taran Goel Nov 9 '15 at 9:42
  • yes, I have broken the role inheritance and then using the above assignment. But it is strange to have bad request error. I have added the web service into workflow app step. – user48429 Nov 9 '15 at 10:07

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.