I’m trying to perform a migration from a legacy vCloud Director environment to ManageIQ. I have about 200 VMs in the vCD that I want to extract their owner info, and assign to the correct owner in MIQ, however, none of the users have logged in yet, and I’d like for them to be able to see all of their VMs when they first login to ease transition/adoption.
I’ve tried using a REST API call to /api/users with {action:create…} but I get a “401 unauthorized”, though the same auth-token works for performing searches for vms and users via /api/users and /api/vms, and I’m authenticating as the super-administrator, so user creation should be allowed as part of the assigned role. I’ve tried with password value both set and unset with no change in behavior.
All of this is being done through Powershell, as that’s the most convenient interface for talking to vCD and making the rest calls to MIQ.
{
“resources”: [
{
“email”: “user@domain”,
“group”: {
“id”: 22
},
“userid”: “user@domain”,
“password”: “”,
“name”: “user”
}
],
“action”: “create”
}