Change owner of instance

Hi,

We have some ansible code which imports (make managed) VM’s into Morpheus.

Is there away of changing the owner of the instance as part of the make managed or move of tenant?

Currently the owner is the service account performing the work not the end user.

Thanks
Jon

Yes you can!

I do similar in this Morpheus package to import brownfield / Make Managed:

https://dev.azure.com/morpheusdata/Morpheus%20Packages/_git/SP-MORPHEUS-MORPKG?path=/scripts/inventoryBrownfield.py

Line 205 I set the user ownership if they are found. Note you can only assign an owner if they have authenticated to Morpheus already.

You can check out some of the existing packages for code here:
https://share.morpheusdata.com/package