VMware Cloud Community
MBaldwin
Contributor
Contributor
Jump to solution

Active Directory fields not correct

Hello,

I'm running the 1.04 AD plugin on vCO 5.5.1.  When I run any of the create user workflows, like Create a user with a password in an OU or Create a user with a password in a group, for example, if you look in AD at the new user the fields aren't populated correctly.

Example, the First Name field has the first and last name I supplied in the workflow.  The Last Name field is populated with the the account name I supplied.

Any ideas on how to get this to work as expected?

0 Kudos
1 Solution

Accepted Solutions
Burke-
VMware Employee
VMware Employee
Jump to solution

You cannot modify the library workflows.. instead, you create a new workflow that wraps the library workflow, add inputs and additional workflow elements to complete the task needed. In the workflow I attached, that is what I did. I map the library workflow inputs and then pass the created AD:User object as an Attribute and then pass that in to a Scriptable task that correctly sets the givenName, sn, etc...

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
5 Replies
admin
Immortal
Immortal
Jump to solution

Hello,

  this issue is fixed in the next release of the plugin. You can use as a workaround setting additionally the "sn" attribute (which is "Last name") and the "givenName" attribute (which is "First name") after creation of the user.

Regards, Elena.

0 Kudos
MBaldwin
Contributor
Contributor
Jump to solution

Are you saying I modify the workflow?

0 Kudos
admin
Immortal
Immortal
Jump to solution

Yes, you can add one more step in the workflow and changing the user attributes :

     user.setAttribute("givenName", "John");    

     user.setAttribute("sn", "Lewis");

Burke-
VMware Employee
VMware Employee
Jump to solution

Here's an example that I created for same request internally.... 

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
Burke-
VMware Employee
VMware Employee
Jump to solution

You cannot modify the library workflows.. instead, you create a new workflow that wraps the library workflow, add inputs and additional workflow elements to complete the task needed. In the workflow I attached, that is what I did. I map the library workflow inputs and then pass the created AD:User object as an Attribute and then pass that in to a Scriptable task that correctly sets the givenName, sn, etc...

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