There is an
owner_manager_mail field in the VM provision dialogs, but it is hidden by default:
If you want to display it, you need to copy the dialog and change the
:display attribute to
show. Now you need to customize the Provisioning profile to use the new dialog (change the
dialog_name attribute accordingly).
One more task for you is to copy and change the email methods
MiqProvisionRequest_Denied to send emails to the manager instead of
to_email_address attribute value. Just make sure the manager can login and has a role of approver.
Another approach (if you want to query the manager email address from an external source - i.e. directory service) is just modifying the email methods and adding the relevant code to figure out the manager email address. In this case you don’t have to bother with the dialogs and profiles, and the user does not have to/cannot input this address.
This is just a high-level description of what needs to be done. For details refer to Peter’s book.