Assigning users permissions on VM's using API only