I have two internal portal setups. We use windows authentication and I have an account in each portal where I am automatically logged in via the web when accessing the portal. I have a SD file (service definition file created with ArcMap) that I would like to publish as a hosted feature service to both portals at once. (I end up with two different hosted feature services, one in each portal) Is there a good way to batch publish this SD file over the web using the REST API that someone has already built. Having to change the portal site via the administrator is painful. Not unless someone could recommend another method.