Quantcast
Channel: VMware Communities : All Content - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 10285

populate vRA text field with current logged in username?

$
0
0

Hello!

I've searched the forums and found a few examples of other users trying to get the current logged in user to pass to vRO. I've tried a few of these suggestions and I'm getting stuck and not sure how to proceed.

Here is the current hangup.

Within vRA I have a blueprint with a text field that should be populated by calling a vRO action. This action should return the username of the user who is requesting a VM. Users authenticate into vRA using active directory.

I've got the text field configured properly and it calls this vRO action:

var user = Server.getCurrentLdapUser().userPrincipalName;

user = String(user);

var strippedUser = user.split("@")[0];

return strippedUser;

 

The odd thing is, it returns a seemingly random value : cafe-iNZbVT-62A

Any idea where this value may be coming from and what I need to do to get the correct username value returned?


Viewing all articles
Browse latest Browse all 10285

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>