0

I have a problem with the Web Service call to add a user to a SharePoint group. I am getting Forbidden error when the workflow goes to HTTPcall step.

I have followed this link to create the workflow-http://codelesssharepointinfopath.com/workflow-useful-rest-calls-add-user-to-group/

Screenshot of the workflow

Posting below the responses which I got on the email:

Meta: {"type":"SP.User"}
Params: {"__metadata":{"type":"SP.User"},"LoginName":"i:0#.f|membership|xxx@zzz.com"} Request Header: {"Accept":"application/json;odata=verbose","Content- Type":"application/json;odata=verbose","Authorization":""} Response Code: Forbidden Response: {"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."}}}

Note : I am selecting a List field(Person or Group) value for LoginName.

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.