Add Users To AD Group From SharePoint 2016 Using 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 on July 11 2016.

In this article, we will see how to add the users to SharePoint AD Group, using Nintex Workflow. In order to see, how to create an AD Group use Nintex Workflow you can refer to the article here .

As a prerequisite, create the Configuration List (AD Group Users), which will hold the user information.



Create the columns, as shown below-



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



This will open up Nintex Workflow designer. We can select the actions from the left pane. Add the ‘Add user to AD Group’ action to the form.



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



Click Configure button in the action.



Specify the active directory by selecting from the LDAP Picker.



Specify the user name and password, which will be used to connect to AD. Now, we have to specify the User name and the AD group to which the user has to be added. To make it configurable, retrieve the user name from the list: AD User Group. Hence, click the browse button, which is next to user field and select the list item field ‘User’ from Item Properties tab.



Similarly, retrieve the group name from the list. Assign ‘AD Group Name’ from the Item Properties tab to the ‘Group’ field in the form.



The configuration form will eventually look, as shown below-



Now, set the Workflow triggering condition. Here, we are setting it to ‘Start, when items are created’, so that the Workflow triggers on item creation.



Now, ‘Publish’ the Workflow.



Specify the Workflow name, description and Submit.



The Workflow is being published.



Finally, the publishing is completed.



Let’s go ahead to the ‘AD Group Users’ list and create a new Item. Specify the user to be added and AD Group name as well.



This will trigger the Workflow and the status can be verified from the Workflow column name.



On checking AD group, we can see that the new user has been added to it.



Summary - Thus, we saw how to add new users to the AD group by maintaining a configuration list in SharePoint 2016, using Nintex Workflow 2016.

Up Next
    Ebook Download
    View all
    Learn
    View all