Need to create an Organizational Unit object in AD using Nintex Workflow

  • 9 November 2017
  • 3 replies
  • 5 views

Badge +1

Hi all,

In Nintex Workflow it is possible to create an AD group using "Create AD group" action. Once the object is created in AD using Nintex Workflow its class is "Group". However I would like to create an object of "Organizational Unit" class.

Like on the screen shot below, "Test" is an "Organizational Unit" object in AD and "4" as well as "5" are "Group" type object.

210466_pastedImage_1.png

Could you please tell me if it's possible to create such object in AD using Nintex Workflow and if yes can you explain how to do that?

Many thanks,

Rafal


3 replies

Userlevel 7
Badge +17

Hi!

I personally don't think this is possible with that action. It's purpose is to create an AD group, not OU, which is very much different to a group. According to documentation (Create AD Group) you can only create a group that way.

The way I think you could try to achieve it, is to use a PowerShell script (New-ADOrganizationalUnit) and the action from https://community.nintex.com/community/build-your-own/blog/2015/10/06/ntx-powershell-action-stable-releasehttps://community.nintex.com/community/build-your-own/blog/2015/10/06/ntx-powershell-action-stable-release 

Regards,

Tomasz

Badge +1

Thank you Tomasz for this solution. I have tested it and it works great.

Userlevel 7
Badge +17

This is why we are here for happy.png Can you mark my answer as correct then please?

Regards,

Tomasz

Reply