In this article you will see how to add a user to a SharePoint group using a NINTEX workflow.
Introduction
In this article you will see how to add a user to a SharePoint group using the NINTEX workflow. We will be adding the user to the SharePoint group by calling the web service _vti_bin/usergroup.asmx. I have created a custom list named "User Provisioning" in which I have the following columns:
The SharePoint Group column is used to specify to which group the user must be added and the User Name column is used to specify the user to be added to the specified group.
Creation
The following explains how to create the site creation workflow:
- Navigate to the User Provisioning list.
- Click on the List tab and then click on Workflow Settings.
- Click on Create a Workflow in Nintex Workflow.

- Click on Cancel.

- Drag and drop the Call web service action from the Integration section.

- You can see the warning symbol in the workflow action, click on that; you will see the following warning message.

- Click on "Configure" from the drop down list in the Call web service action.

- Click on the Insert Reference button for the URL column and then click on Common tab. Select Web URL and then click on Ok.

- Append /_vti_bin/usergroup.asmx to the URL column.
- Enter the User Name and Password to call the web service and then click on the Reference button.
- Click on Ok.

- All the web service methods will be populated. Select the AddUserToGroup web method that will be used to add the user to the specified SharePoint group.

- The Web Service Input section will be populated for passing the input values to the web method.

- Click on the Insert Reference button for the groupName column and then click on the Item Properties tab. Select the SharePoint Group and then click on Ok.

- Click on the Insert Reference button for the userName column and then click on the Item Properties tab. Select the User Name and then click on Ok.

- Click on Save.










Ketak BhalsingPosted Oct 9, 2018, 3:04 AM
What if we have to add Everyone group to SharePoint Visitors group ? Any idea ?
Anshita ShrivastavaPosted Feb 22, 2016, 3:51 AM
This works fine with single user but failed when multiple selection is allowed for people field. Please suggest!
Parveen UstadPosted Jan 27, 2016, 7:50 AM
I am getting error "The remote server returned an error: (500) Internal Server Error." while following above document. Please help me to resolve this.
Gowtham RajamanickamPosted Mar 2, 2015, 4:01 AM
SharePoint 2013 few things are changed. i have tried to get the above option.but no luck.
srikanth rajulapudiPosted Jan 21, 2014, 6:32 AM
Thanks for the post... It helped a lot...