Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

SharePoint 2013 Online - Adding a user to a security group via workflow and REST

$
0
0

Hi all,

I am trying to add a user to a security group via a SharePoint 2013 workflow I currently have 3 dictionary's being built and then a call to the http web service and all of this is inside of an app step.

Unfortunately I am getting an error back from the Response Content which I am having to email to myself, the error code reads:

{"error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":{"lang":"en-US","value":"An entry without a type name was found, but no expected type was specified. To allow entries without type information, the expected type must also be specified when the model is specified."}}}

This is currently how my workflow looks:

My call to the web service looks like the following:

https://site.sharepoint.com/sites/sitecollection/_api/web/sitegroups/getbyname('group name')/users

Inside of all of the dictionary's I have the following:


I have the LoginName set to be the user who created the current item, this is set to be the users login name.

This is all being done within SharePoint Designer 2013 and I have been trying to fix this issue for over 3 days now. Any help to get this sorted would be really appreciated.


Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>