allow creation of shared domains through the API

[finishes #58468508]