Change machine owner without reprovisioning

Is there a way to change owner of a machine without release/provision? If not over API (I haven’t found it myself), then at least via direct database update?

Hi there,

You can do it over the API when deleting a user, e.g. (Otherwise, you can just modify the DB):

maas user delete transfer_resource_to=<new_user>

PLease note this is only available on 2.5+.

OK, thanks.Do you perhaps know which tables should I modify? I haven’t looked at the database model yet, so I don’t know how complex it is…

Please also consider adding this to the API.