VMware Cloud Community
Dirty_Hipster
Enthusiast
Enthusiast
Jump to solution

How to get User's Login Name From Webview to the Orchestrator

Hi Folks,

I have a question about user authentication. I have a webview front portal associate with a workflow in vCO.

Users in the predefined LDAP user group can have rights to log in to the front end portal.

The question is, I would like to get the user's log in name or the corresponding Active Directory User object from the portal and use it in the workflow in vCO.

Is there anyway to do that?

Asking the users to input their names after log in is the way I could think of, any other ways to avoid this? cause users may use alias in the ldap group.

Thanks,

D.H.

0 Kudos
1 Solution

Accepted Solutions
Burke-
VMware Employee
VMware Employee
Jump to solution

Hiya, within your Scriptable task, you can get the ldapuser that is running a workflow:

var currentLdapUser = Server.getCurrentLdapUser();

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

Hiya, within your Scriptable task, you can get the ldapuser that is running a workflow:

var currentLdapUser = Server.getCurrentLdapUser();

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

This is the answer I was looking for!

Thanks

0 Kudos