top of page

How to Add a Group in SharePoint Site Using NINTEX Workflow

Updated: Mar 18, 2019

Introduction

In this article you will see how to add a group to a SharePoint site using a NINTEX workflow. We will be adding the group to the SharePoint site by calling the web service "_vti_bin/usergroup.asmx". I have created a custom list named "Group Provisioning" in which I have the following columns:


Workflow Design


The Group Exists UDA is a user defined action that is used to check if the group exists. Please refer to the following articles:

Set a condition is used to set the Yes or No value. The Call web service action adds the group to the SharePoint site.


Add Group workflow

  • Navigate to the Group 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 Group Exists UDA action from the User defined actions section.


  • Click on "Configure" from the drop down list in the Group Exists UDA action.



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


  • Click on the "New" button.


  • Enter the variable details.


  • Click on "Save".The Workflow variable is created successfully.


  • Click on "Close".Enter the Input and Output parameters for the UDA as shown below.


  • Click on "Save".Drag and drop the "Set a condition" action from the Operations section.

  • Click on "Configure" from the drop down list.


  • Set the condition as shown below.


  • Click on "Save".

  • Drag and drop the "Call web service" action from the Integration section for the true condition.

  • Click on "Configure" from the drop down list.

  • Click on the "Insert Reference" button for the URL column and then click on the "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 AddGroup web method that will be used to remove 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 Group Name and then click on "Ok".

  • Click on the "Insert Reference" button for the ownerIdentifier column and then click on the "Item Properties" tab. Select the Group Owner and then click on "Ok".

  • Click on the "Insert Reference" button for the ownerType column and then click on the "Item Properties" tab. Select the Owner Type and then click on "Ok".

  • Click on the "Insert Reference" button for the defaultUserLoginName column and then click on the "Item Properties" tab. Select the Default User and then click on "Ok".

  • Click on the "Insert Reference" button for the description column and then click on the "Item Properties" tab. Select the Group Description and then click on "Ok".

  • Click on Save.


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

  • Navigate to the "Group Provisioning" list.

  • Create a new item.


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


  • Click on "Add Group workflow" and then click on the "Start" button.


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

  • If the specified Group Name does not exist in the site then the group will be created successfully in the SharePoint site


Summary

Thus in this article you saw how to add the group to the SharePoint site using a NINTEX workflow.

Related Links

0 comments

Comentários


bottom of page