How to overwrite a service owned by someone else?

06-10-2020 07:27 AM
Occasional Contributor III

Using a Federated 10.7.1 environment here. We have map service published to the GIS Server. How can someone overwrite an existing service that is owned by someone else? We have a team of people working on a project with multiple services. All users are set to the Creator role with Publisher user type. From a productivity standpoint, we do not want to have to change ownership for services each time a new person needs to overwrite. What is the correct workflow for overwriting a service owned by someone else?

0 Kudos
4 Replies
Esri Frequent Contributor

Tiger - from my research on the internals, this is what I learned:


Generally, the answer is that publishers can only overwrite services they own:

"Publishers can only work with services that they have created in the portal. They cannot modify or delete other publishers' services"

"Administrators have user and publisher privileges, and they have permissions to all services hosted by the federated server."

To overwrite services owned by someone else, you would either need to be an Administrator, or use a custom role that has administrative content privileges. If you decide to go this route, keep in mind this section from the above documentation:

"If a custom role is created with any administrative privileges, ArcGIS Server will grant members within that role full administrative access. This includes rights to publish any service type directly to ArcGIS Server and the ability to view and access all services. Consider the security risks before creating a custom role for any member that includes administrative privileges."


Occasional Contributor III

I see, thanks for the response. My only gripe with setting users as Administrator is that they then have full administrative privileges to the GIS Server. They can edit the Primary Site Admin account if they found the setting in Server Manager. Although they can view all services and (probably) overwrite services not owned by them, I do not want them to have this access. So basically our only option is to re-assign the owner when someone new wants to overwrite a service, correct?

Esri Contributor

Hi Tiger

I had to do something very similar lately, which is overwriting hosted layers after reprojecting the source data, and I found that I cannot republish/overwrite the hosted layer even if I am using Portal site admin user through the process. I had to assign the portal item to my user, do the data changes, republish the hosted layer with the "overwrite" option enabled, then assign the portal item back to the original portal user.
Assigning the portal item -hosted layer or a map service on a federated server- can be done in 1 single step using the API for Python:

portalItem.reassign_to(target_owner=user, target_folder=folder)

arcgis.gis module — arcgis 1.8.0 documentation 


Ihab Hassan

0 Kudos
Occasional Contributor III

Thanks Ihab, that's good to know. I wish we could overwrite services without changing ownership! This functionality existed in our stand along ArcGIS Server 10.5.1. Was hoping I wasn't missing something obvious  

0 Kudos