VMware Cloud Community
Mnemonic
Enthusiast
Enthusiast

vCO AD Domain User Lookup from vCAC

Hi,

I am having an issue with vCAC and vCO integration.

I have a user ordering a group membership by selfservice. I need to use the AD:User Object of the user ordering.

I can get the user from vCAC in the format <username>@<fqdn>, but how can I translate this into a AD:User object in vCO. There are no action/workflow to search for a AD User.

Best Regards

Brian Knutsson

0 Kudos
2 Replies
cdecanini_
VMware Employee
VMware Employee

Try with users = ActiveDirectory.searchRecursively("User",userName);

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 vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
Mnemonic
Enthusiast
Enthusiast

Hi,

Thank you for the reply. That works except it also takes all other users with similar username.

Ex: User = tt also finds user tt2.

To help other I used the following code i vCO scriptable task:

var username = __asd_requestedBy.split("@");

users = ActiveDirectory.searchRecursively("User",username[0])

0 Kudos