Adding Username to VM Context

I am try to understand how to apply a user to a VM Context. In my Context if I set USERNAME equal to a static value it will make that user. But I want it to take the Username of the user who is creating the VM, I have tried setting it $USER, $USERNAME, $USER[NAME], $USER[USERNAME] and the field remains blank when checking the VM’s context screen. What is the correct value for this?

Hi @Mercwri ,

you are on the right track, but there is a detail. The attribute should be in the USER TEMPLATE

Other option is add $UNAME to your context template, eg:


You can check documentation for more information

Regards :rocket: