For a customer we want to manage rights on vCenter level. i.e. Group A from AD has the role Virtual Machine User on folder 1 in vCenter containing x amount of VMs. Setting these rights will be part of the automated task of creating machines using xml commands to vcenter.
We have explored the posibilities with PowerCLI and we can create some nice scripts to solve the issue. But we prefer to set there rights by calling the API in vCenter, preferbly the same way as with creating the machines. This also kills the necessity of PowerCLI on the automation server.
Does anyone have any experience with this (maybe some XML code snippets)? I've looked at the vSphere API reference but I'm having trouble finding the right commands.