VMware Cloud Community
mmumshad
Contributor
Contributor
Jump to solution

Active Directory Plugin to create OU at root

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?

Reply
0 Kudos
1 Solution

Accepted Solutions
Burke-
VMware Employee
VMware Employee
Jump to solution

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

Reply
0 Kudos
8 Replies
abhilashhb
VMware Employee
VMware Employee
Jump to solution

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...

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

Reply
0 Kudos
mmumshad
Contributor
Contributor
Jump to solution

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?

Reply
0 Kudos
Burke-
VMware Employee
VMware Employee
Jump to solution

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
Reply
0 Kudos
mmumshad
Contributor
Contributor
Jump to solution

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?

Reply
0 Kudos
igaydajiev
VMware Employee
VMware Employee
Jump to solution

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
Jump to solution

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

Reply
0 Kudos
Burke-
VMware Employee
VMware Employee
Jump to solution

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
Reply
0 Kudos
imtrinity94
Enthusiast
Enthusiast
Jump to solution

imtrinity94_0-1639032301097.png

Its doesn't seem to be working in vRO 8.3 possibly due to AD plugin changes

 


Mayank Goyal
vRO Engineer
https://www.linkedin.com/in/mayankgoyal1994/
https://cloudblogger.co.in/
Reply
0 Kudos