I am trying to validate a ASD form field in vCO. Basically to perform the form validation I have to know the requesting users account name.
I want to return a list of permitted values for a field based on the users access rights to certain objects. I have the validation being called correctly and returning test values, but I cannot complete the code without the users account details.
Once the work flow 'runs' then I can use System.getContext().getParameter('__asd_requestedBy') to get the requesting users UPN, but at the validation stage this variable does not seem to set.
I looked at Server.getRunningUser() but that just gives me the vCAC Cafe user.
So is there any mechanism for retrieving the requesting users name during validation?