Conditionally Remove Users From A SharePoint Group Using Nintex Workflow 2016

SharePoint 2016 General Availability had been announced at the  Future Of SharePoint conference in May 2016. The series, which discusses the installation of SharePoint 2016 in Azure can be found at C# Corner from the links, given below-

Nintex is a premium technology partner for SharePoint. With the announcement of SharePoint 2016, Nintex has made the announcement of the General Availability of Nintex Workflow 2016 on July 11, 2016.

You can read about how to add the users to SharePoint groups from this article. In this article, we will see how to remove the users from SharePoint groups, using Nintex Workflow 2016. As a prerequisite, create the configuration list ‘SharePoint Users’, which will hold the user information.

Ensure you add the Boolean field ‘Remove User From Group?’ based on which the workflow will remove the user from the group. Let’s go ahead to the primary list, where we will be running our Nintex Workflow. In our case, it is ‘SharePoint Users’ List. Select ‘Create a Workflow in Nintex Workflow’.

Add the Call Web Service action on to the designer.

Once the action is added, it will show the condition missing warning. Click Configure to set up the Configuration form propties.

Set up the Web Service URL, which will be used to process the user removal. The OOB Web Service which will be used is UserGroup.asmx.

The URL to the Web Service is created by retrieving the Web URL from the Workflow variable and then appending “/_vti_bin/usergroup.asmx” to it. Specify the site collection administrator credentials to the username and password section, as it will be used to connect to the Web Service.

Specify the Web method, which will be used to remove the user. In our case, it is ‘RemoveUserFromGroup’.

Now, we have to set the group name and user, which has to be removed from the group. This will be read dynamically from SharePoint Configuration List. Click the browse button, which is available next to the groupname field and select the list item field ‘Groups’ from Item Properties tab.

Click the browse button, which is located next to ‘userLoginName’ field and select the list item field ‘User’ from Item Properties tab.

Eventually, the configuration form will look, as shown below-

Now, set the Workflow triggering the condition. Click ‘Workflow Settings’.

Here, we are setting it to ‘Start, when the items are modified’, so the Workflow triggers on the item update.

Now, publish the Workflow.

Specify the Workflow name, description and submit.

Finally, the publishing completes.

Let’s go ahead to the list and update the list item.

The Workflow has been triggered and has run to the completion. It can be verified from the Workflow column ‘Remove user from group’.

By going to the ‘Employees’ group, we can confirm the user deletion.


Thus, we saw how to remove the users form a SharePoint Server 2016 group, using Nintex Workflow 2016.

Up Next
    Ebook Download
    View all
    View all