We have dozens of virtual machines that I would like to share with a particular User Role. The training staff and managers are both Self-Service Users, with the Managers having all permissions and the trainees having limited permissions. For example, 20 training VMs that have individual owners set, but I need to share them with the Managers user role.
Instead of going to the Properties>Access on each VM, is it possible to update the GrantedToList via PowerShell? Or if a Training staff deploys their own Virtual Machine, they are set as the Owner. Is there a way to automatically share it with the Manager User Role too? I would also like to create a list of Virtual Machines that a particular User Role has access to.
Maybe I am going about this all wrong. Any advice is appreciated. Thank you.