Conditionally Delete AD Group Using SharePoint And Nintex Workflow 2016

SharePoint 2016 general availability had been announced in the Future Of SharePoint conference in May 2016. The series that discusses the installation of SharePoint 2016 in Azure can be found at C# Corner from the below links,

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 in July 11th 2016. You can check out the article on how to automate the creation of AD group using Nintex Workflow here,

In this article, we will see how to delete an AD group based on the List column value maintained in the SharePoint Configuration list.
As the prerequisite, create the Configuration list.



Create the column ‘Remove AD Group?’ (If yes), based on which workflow will remove the AD Group.



Let’s go ahead to the primary list where we will be running our Nintex Workflow. In our case, it is the ‘Group Operations’ List. Select ‘Create a Workflow in Nintex Workflow’.



This will open up the Nintex Workflow designer. Add the Run-If condition action to the designer.



Once the action is added, it will show the condition missing warning.



Click on 'Configure' button in the action.



Set the condition to ‘Remove AD Group?’ Equals ‘Yes’.



Now, add the condition ‘Delete AD Group’.



Once the action is added, it will show the condition missing warning.



Click on 'Configure' button in the action.



The configuration form will look like the below-



Add the AD information by picking it from the LDAP Picker.



Specify the username and password which will be used to access the AD.



The group name to be deleted will be taken from the SharePoint Configuration List. Click the Browse button, next to Group name field, and select the list item field ‘AD Group Name’ from Item Properties tab.



Eventually, the configuration form will look like the below-



The designer form will look like this.



Now, set the workflow triggering condition. Here, we are setting it to ‘Start when items are modified’ so that the workflow triggers on item update.



Now, 'Publish' the workflow.



Specify the workflow name and description, and Submit.



The workflow has been published.



Let's head over to the configuration list and update the list item.



This will trigger the workflow which can be verified from the Workflow Column ‘Delete AD Group’.



Summary

The workflow has run to completion.



Thus, we saw how to remove the AD Group by using a SharePoint Configuration List and Nintex Workflow 2016.

Up Next
    Ebook Download
    View all
    Learn
    View all