mmumshad
Contributor
Contributor

Active Directory Plugin to create OU at root

Jump to solution

With the Microsoft AD plugin I am able to create Organization Unit under another OU. But is it possible to create an OU directly under the Active Directory domain? to site beside Domain Controllers?

0 Kudos
1 Solution

Accepted Solutions
Burke-
VMware Employee
VMware Employee

Yes, it is possible Smiley Wink

Here's how:

Duplicate the Create Organizational unit workflow since you can't edit a Library workflow.

In your duplicate workflow, change the ouContainer input type to AD:ActiveDirectory and save your new workflow.

Now, when you run the workflow, you'll be able to select your root domain and add a new OU to the root level.

Enjoy!

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter

View solution in original post

0 Kudos
7 Replies
abhilashhb
VMware Employee
VMware Employee

Yes. Take a look at the below link. It is for multiple domains but still holds good. Use the Create Organizational unit workflow under the AD plugin library.

http://www.jonathanmedd.net/2015/05/using-the-vro-2-0-plugin-for-active-directory-to-work-with-multi...

------------------------------------------------------------------------------------------------------------------------------------ If you find this or any other answer useful please mark the answer as correct or helpful. Abhilash B | Blog : http://vpirate.in | Twitter : @abhilashhb | LinkedIn : https://www.linkedin.com/in/abhilashhb/ |
0 Kudos
mmumshad
Contributor
Contributor

Thanks for the response. As I mentioned in my question I am aware of the Create OU Workflow. But it only creates OU inside another OU. I would like to create an OU directly under the AD and not inside an existing OU. Is that possible?

0 Kudos
Burke-
VMware Employee
VMware Employee

Yes, it is possible Smiley Wink

Here's how:

Duplicate the Create Organizational unit workflow since you can't edit a Library workflow.

In your duplicate workflow, change the ouContainer input type to AD:ActiveDirectory and save your new workflow.

Now, when you run the workflow, you'll be able to select your root domain and add a new OU to the root level.

Enjoy!

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter

View solution in original post

0 Kudos
mmumshad
Contributor
Contributor

I tried that but its not working. Have you tried it? As you said I duplicated the workflow. I changed the input to AD-Active Directory. I had to change the input type to tree to be able to select the active directory domain.

Once I did and ran workflow, selected the Active Directory domain and input the new name. It errors - "TypeError: Cannot find function createOrganizationalUnit in object notfound."

I believe this is because the underlying action - CreateOrganizationalUnit - expects AD:OrganizationalUnit as input type.

So I duplicated the action and called it - CreateOrganizationalUnitAtRoot - and changed input type to AD:ActiveDirectory (also tried AD:Group) . I get the same error in both cases - TypeError: Cannot find function createOrganizationalUnit in object notfound.

Any ideas?

0 Kudos
igaydajiev
VMware Employee
VMware Employee

Find attached sample workflow how to create OU under root of the domain using AD plugin version 2.0.8.

You can also take a look at 3.0.1 technical preview version of AD plugin. It has generic LDAP client which will allow you to create arbitrary LDAP entry.

Tech preview is available here Technical preview version of VMware vCenter Orchestrator Plug-In for Microsoft Active Directory

and brief overview of new features can be found here Active Directory plugin 3.0.0 - New and Noteworthy

igaydajiev
VMware Employee
VMware Employee

Find attached sample workflow how to create OU under root of the domain using AD plugin version 2.0.8.

You can also take a look at 3.0.1 technical preview version of AD plugin. It has generic LDAP client which will allow you to create arbitrary LDAP entry.

Tech preview is available here Technical preview version of VMware vCenter Orchestrator Plug-In for Microsoft Active Directory

and brief overview of new features can be found here Active Directory plugin 3.0.0 - New and Noteworthy

0 Kudos
Burke-
VMware Employee
VMware Employee

Yes, I only posted my response after I had successfully confirmed that it works. My environment was a vRO 7.0.1 server with the AD plug-in that shipped with vRO (IE: I did not apply any updated AD plug-in.)

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter
0 Kudos