How to Remove User From SharePoint Group Using NINTEX Workflow

Introduction

In this article you will see how to remove a user from a SharePoint group using a NINTEX workflow. We will be removing the user from 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 specifies which group the user is to be removed from and the User Name column specifies the user to be removed from the specified group.

Delete User

The following procedure deletes a user from a group 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 will 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" in 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 "RemoveUserFromGroup" web method that adds 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 "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 User Name and then click on "Ok".

  • Click on "Save".

Publish the workflow

Use the following procedure to publish the workflow

  • Click on the "Publish" button in the ribbon interface.


  • Make sure the Title is set; optionally you can set the values for Description and Change Comments.


  • Click on the "Submit" button.


  • The workflow is published successfully.


Test the workflow

Test the workflow using the following procedure

  • Navigate to the User Provisioning list.Create a new item.


  • Select the item and then click on "Workflows" in the ribbon interface.



  • Click on "Delete user from group workflow" and then click on the "Start" button.


  • After a few minutes the workflow status will be changed to Completed.


  • The user is removed successfully from the specified SharePoint group.


Summary

Thus in this article you have seen how to remove a user from the specified SharePoint group using a NINTEX workflow.

Related Links

  1. How to Create Site Using NINTEX Workflow in SharePoint

  2. How to Delete Site Using NINTEX Workflow in SharePoint

  3. How to add user to SharePoint group using NINTEX workflow

Recent Posts

See All

Domain Name System

The Domain Name System (DNS) is the phonebook of the Internet. Humans access information online through domain names, like nytimes.com or espn.com. Web browsers interact through Internet Protocol (IP)