VMware Cloud Community
sbeaver
Leadership
Leadership
Jump to solution

Advanced Services

Long story short, I have taken a standard blue print and recreated it in the advanced services creating actions for all the XML and I have things working great from a VCO point of view so I adding the request for a catalog item as an advanced service and what I am really looking for is how to get the value of the person that is logged and requested this service to use as the owner.  I would really like to have it pre-populate as well as be able to be able to search for others but so fat I have not been successful when trying to change the value of the owner field to use external action to get current user but I have found when the requests are made they are made from service accounts and such.

So what am I missing or need to do in the form designer to pull the current vCAC logged in user to the owner field?  Inquiring minds need to know Smiley Happy

Thanks

Steve

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
0 Kudos
1 Solution

Accepted Solutions
stvkpln
Virtuoso
Virtuoso
Jump to solution

Take a look at what Omer did here, it may be helpful: http://elasticskies.com/vcac-xaas-requester-details/

One thing to make sure you keep in mind is that, if you're using a shared account to connect back to CAFE, that account needs to be a support user for the business group (I think) to properly provision as a specified owner... but, don't quote me on that.

-Steve

View solution in original post

0 Kudos
2 Replies
stvkpln
Virtuoso
Virtuoso
Jump to solution

Take a look at what Omer did here, it may be helpful: http://elasticskies.com/vcac-xaas-requester-details/

One thing to make sure you keep in mind is that, if you're using a shared account to connect back to CAFE, that account needs to be a support user for the business group (I think) to properly provision as a specified owner... but, don't quote me on that.

-Steve
0 Kudos
SeanKohler
Expert
Expert
Jump to solution

Well the current requestor in the ASD form is always available through the request.

Add __asd_requestedBy to your Workflow Inputs.

Then you can either assign it to a runtime variable or use it directly in your script.  If you are leveraging a REST call, you would replace the requestedFor fields with the owner value.

-----------------------------------------------------------------------------------

"requestedFor":__asd_requestedBy

....

{"key":"requestedFor", "value":{"type":"string", "value":__asd_requestedBy}}