<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Overwriting Locator  - but can't share with everyone (portal permissions) in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1269791#M13304</link>
    <description>&lt;P&gt;import arcpy&lt;BR /&gt;import pprint&lt;BR /&gt;#from arcgis.gis import GIS&lt;/P&gt;&lt;P&gt;#sign into portal&lt;BR /&gt;arcpy.SignInToPortal(arcpy.GetActivePortalURL(), "**user", "**password")&lt;/P&gt;&lt;P&gt;# Overwrite any existing outputs&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;locator_path = "C:\\Users\\gisadmin\\Desktop\\Geocoders\\simplicity"&lt;BR /&gt;sddraft_file = "C:\\locator_script\\simplicity.sddraft"&lt;BR /&gt;sd_file = "C:\\locator_script\\simplicity.sd"&lt;BR /&gt;service_name = "simplicity"&lt;BR /&gt;folderName = "Geocoders"&lt;BR /&gt;summary = "Address and Streets locator for the City of Asheville Simplicity Application"&lt;BR /&gt;tags = "address, locator, geocode"&lt;BR /&gt;access = "public"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# The URL of the federated server you are publishing to&lt;BR /&gt;in_server = "&lt;A href="https://xxxx.ashevillenc.gov/server/rest/services/Geocoders/" target="_blank"&gt;https://xxxx.ashevillenc.gov/server/rest/services/Geocoders/&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;# Create the sd draft file&lt;BR /&gt;analyze_messages = arcpy.CreateGeocodeSDDraft(locator_path, sddraft_file, service_name,&lt;BR /&gt;copy_data_to_server=True, folder_name=folderName,&lt;BR /&gt;summary=summary, tags=tags, max_result_size=20,&lt;BR /&gt;max_batch_size=500, suggested_batch_size=150,&lt;BR /&gt;overwrite_existing_service=True)&lt;/P&gt;&lt;P&gt;# Stage and upload the service if the sddraft analysis did not contain errors&lt;BR /&gt;if analyze_messages['errors'] == {}:&lt;BR /&gt;try:&lt;BR /&gt;# Execute StageService to convert sddraft file to a service definition&lt;BR /&gt;# (sd) file&lt;BR /&gt;arcpy.server.StageService(sddraft_file, sd_file)&lt;/P&gt;&lt;P&gt;# Execute UploadServiceDefinition to publish the service definition&lt;BR /&gt;# file as a service&lt;BR /&gt;arcpy.server.UploadServiceDefinition(sd_file, in_server)&lt;BR /&gt;print("The geocode service was successfully published")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;except arcpy.ExecuteError:&lt;BR /&gt;print("An error occurred")&lt;BR /&gt;print(arcpy.GetMessages(2))&lt;BR /&gt;else:&lt;BR /&gt;# If the sddraft analysis contained errors, display them&lt;BR /&gt;print("Error were returned when creating service definition draft")&lt;BR /&gt;pprint.pprint(analyze_messages['errors'], indent=2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 12:49:15 GMT</pubDate>
    <dc:creator>ChristenWatts</dc:creator>
    <dc:date>2023-03-21T12:49:15Z</dc:date>
    <item>
      <title>Overwriting Locator (python) - but it changes permissions to private (portal)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1186332#M12437</link>
      <description>&lt;P&gt;Thanks for your potential help!&lt;/P&gt;&lt;P&gt;I'm using the &lt;A href="https://euclgis.reg.rw/portal/portalhelp/en/notebook/latest/python/windows/creategeocodesddraft.htm" target="_self"&gt;CreateGeocodeSDDraft&lt;/A&gt; script to overwrite my Locator on Portal which is working... except -- when it overwrites/publishes&amp;nbsp; - the permissions are set to Private and I want it to be Public/Everyone.&amp;nbsp; I can change it to Everyone/Public in Portal, or on the Server Manager - run the script - is published but it private.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&amp;nbsp; I've tried everything I can think of (there are some not called variables from all my attempts)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the script I'm using&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;import pprint&lt;/P&gt;&lt;P&gt;#sign into portal&lt;BR /&gt;arcpy.SignInToPortal(arcpy.GetActivePortalURL(), "####", "####")&lt;/P&gt;&lt;P&gt;# Overwrite any existing outputs&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;locator_path = "C:\\Users\\gisadmin\\Desktop\\Geocoders\\simplicity"&lt;BR /&gt;sddraft_file = "C:\\locator_script\\simplicity.sddraft"&lt;BR /&gt;sd_file = "C:\\locator_script\\simplicity.sd"&lt;BR /&gt;service_name = "simplicity"&lt;BR /&gt;#shrOrg = True&lt;BR /&gt;#shrEveryone = True&lt;BR /&gt;#shrGroups = ""&lt;BR /&gt;folderName = "Geocoders"&lt;BR /&gt;summary = "Address ans Streets locator for the City of Asheville Simplicity Application!"&lt;BR /&gt;tags = "address, locator, geocode"&lt;BR /&gt;shared = True&lt;BR /&gt;everyone ='true'&lt;BR /&gt;orgs = 'true'&lt;BR /&gt;groups = None&lt;BR /&gt;shrOrg = True&lt;BR /&gt;shrEveryone = True&lt;BR /&gt;shrGroups = ""&lt;/P&gt;&lt;P&gt;# The URL of the federated server you are publishing to&lt;BR /&gt;in_server = "&lt;A href="https://gisportal.asheville.gov/server/rest/services/Geocoders/" target="_blank" rel="noopener"&gt;https://gisportal.asheville.gov/server/rest/services/Geocoders/&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;# Create the sd draft file&lt;BR /&gt;analyze_messages = arcpy.CreateGeocodeSDDraft(locator_path, sddraft_file, service_name,&lt;BR /&gt;copy_data_to_server=True,&lt;BR /&gt;summary=summary, tags=tags, max_result_size=20,&lt;BR /&gt;max_batch_size=500, suggested_batch_size=150,&lt;BR /&gt;overwrite_existing_service=True)&lt;/P&gt;&lt;P&gt;# Stage and upload the service if the sddraft analysis did not contain errors&lt;BR /&gt;if analyze_messages['errors'] == {}:&lt;BR /&gt;try:&lt;BR /&gt;# Execute StageService to convert sddraft file to a service definition&lt;BR /&gt;# (sd) file&lt;BR /&gt;arcpy.server.StageService(sddraft_file, sd_file)&lt;/P&gt;&lt;P&gt;# Execute UploadServiceDefinition to publish the service definition&lt;BR /&gt;# file as a service&lt;BR /&gt;arcpy.server.UploadServiceDefinition(sd_file, in_server)&lt;BR /&gt;print("The geocode service was successfully published")&lt;BR /&gt;except arcpy.ExecuteError:&lt;BR /&gt;print("An error occurred")&lt;BR /&gt;print(arcpy.GetMessages(2))&lt;BR /&gt;else:&lt;BR /&gt;# If the sddraft analysis contained errors, display them&lt;BR /&gt;print("Error were returned when creating service definition draft")&lt;BR /&gt;pprint.pprint(analyze_messages['errors'], indent=2)&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 21:48:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1186332#M12437</guid>
      <dc:creator>ChristenWatts</dc:creator>
      <dc:date>2022-06-24T21:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting Locator  - but can't share with everyone (portal permissions)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1186333#M12438</link>
      <description>&lt;P&gt;I am using Enterprise 10.9.1 and ArcGIS Pro 2.9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 21:37:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1186333#M12438</guid>
      <dc:creator>ChristenWatts</dc:creator>
      <dc:date>2022-06-24T21:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting Locator  - but can't share with everyone (portal permissions)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1187012#M12444</link>
      <description>&lt;P&gt;I ended up sharing it (in the script) to a folder that was public and now it's public.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 20:56:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1187012#M12444</guid>
      <dc:creator>ChristenWatts</dc:creator>
      <dc:date>2022-06-27T20:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting Locator  - but can't share with everyone (portal permissions)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1268761#M13293</link>
      <description>&lt;P&gt;I am running into the same issue, can you elaborate a little more by what you mean when you say you shared it in the script to a public folder? Like the locator in the C drive in the script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 20:54:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1268761#M13293</guid>
      <dc:creator>Kayden75</dc:creator>
      <dc:date>2023-03-16T20:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting Locator  - but can't share with everyone (portal permissions)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1268788#M13294</link>
      <description>&lt;P&gt;Hey Kayden, &amp;nbsp;I meant a folder on portal that was shared publicly. My original was not. Hope you can get it working!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 21:52:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1268788#M13294</guid>
      <dc:creator>ChristenWatts</dc:creator>
      <dc:date>2023-03-16T21:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting Locator  - but can't share with everyone (portal permissions)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1268912#M13295</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 12:28:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1268912#M13295</guid>
      <dc:creator>Kayden75</dc:creator>
      <dc:date>2023-03-17T12:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting Locator  - but can't share with everyone (portal permissions)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1269047#M13296</link>
      <description>&lt;P&gt;Sorry to ask you but can you post your code? I'm not sure how to specify the folder.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 17:07:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1269047#M13296</guid>
      <dc:creator>Kayden75</dc:creator>
      <dc:date>2023-03-17T17:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting Locator  - but can't share with everyone (portal permissions)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1269791#M13304</link>
      <description>&lt;P&gt;import arcpy&lt;BR /&gt;import pprint&lt;BR /&gt;#from arcgis.gis import GIS&lt;/P&gt;&lt;P&gt;#sign into portal&lt;BR /&gt;arcpy.SignInToPortal(arcpy.GetActivePortalURL(), "**user", "**password")&lt;/P&gt;&lt;P&gt;# Overwrite any existing outputs&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;locator_path = "C:\\Users\\gisadmin\\Desktop\\Geocoders\\simplicity"&lt;BR /&gt;sddraft_file = "C:\\locator_script\\simplicity.sddraft"&lt;BR /&gt;sd_file = "C:\\locator_script\\simplicity.sd"&lt;BR /&gt;service_name = "simplicity"&lt;BR /&gt;folderName = "Geocoders"&lt;BR /&gt;summary = "Address and Streets locator for the City of Asheville Simplicity Application"&lt;BR /&gt;tags = "address, locator, geocode"&lt;BR /&gt;access = "public"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# The URL of the federated server you are publishing to&lt;BR /&gt;in_server = "&lt;A href="https://xxxx.ashevillenc.gov/server/rest/services/Geocoders/" target="_blank"&gt;https://xxxx.ashevillenc.gov/server/rest/services/Geocoders/&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;# Create the sd draft file&lt;BR /&gt;analyze_messages = arcpy.CreateGeocodeSDDraft(locator_path, sddraft_file, service_name,&lt;BR /&gt;copy_data_to_server=True, folder_name=folderName,&lt;BR /&gt;summary=summary, tags=tags, max_result_size=20,&lt;BR /&gt;max_batch_size=500, suggested_batch_size=150,&lt;BR /&gt;overwrite_existing_service=True)&lt;/P&gt;&lt;P&gt;# Stage and upload the service if the sddraft analysis did not contain errors&lt;BR /&gt;if analyze_messages['errors'] == {}:&lt;BR /&gt;try:&lt;BR /&gt;# Execute StageService to convert sddraft file to a service definition&lt;BR /&gt;# (sd) file&lt;BR /&gt;arcpy.server.StageService(sddraft_file, sd_file)&lt;/P&gt;&lt;P&gt;# Execute UploadServiceDefinition to publish the service definition&lt;BR /&gt;# file as a service&lt;BR /&gt;arcpy.server.UploadServiceDefinition(sd_file, in_server)&lt;BR /&gt;print("The geocode service was successfully published")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;except arcpy.ExecuteError:&lt;BR /&gt;print("An error occurred")&lt;BR /&gt;print(arcpy.GetMessages(2))&lt;BR /&gt;else:&lt;BR /&gt;# If the sddraft analysis contained errors, display them&lt;BR /&gt;print("Error were returned when creating service definition draft")&lt;BR /&gt;pprint.pprint(analyze_messages['errors'], indent=2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 12:49:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1269791#M13304</guid>
      <dc:creator>ChristenWatts</dc:creator>
      <dc:date>2023-03-21T12:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting Locator  - but can't share with everyone (portal permissions)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1269792#M13305</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 12:52:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1269792#M13305</guid>
      <dc:creator>Kayden75</dc:creator>
      <dc:date>2023-03-21T12:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting Locator (python) - but it changes permissions to private (portal)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1627724#M16623</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/163159"&gt;@ChristenWatts&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 11:32:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1627724#M16623</guid>
      <dc:creator>SStopyak_BruceHarris</dc:creator>
      <dc:date>2025-06-27T11:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting Locator (python) - but it changes permissions to private (portal)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1687313#M17227</link>
      <description>&lt;P&gt;I thought sharing was only at the item level, I can't seem to locate how to share a folder.&amp;nbsp; Do you mean a Group?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2026 14:09:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1687313#M17227</guid>
      <dc:creator>LeoDCG</dc:creator>
      <dc:date>2026-02-27T14:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting Locator (python) - but it changes permissions to private (portal)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1687318#M17228</link>
      <description>&lt;P&gt;A "folder" in the script is a folder in your REST directory that you publish to.&amp;nbsp; For this one, mine was called /Geocoders&lt;/P&gt;&lt;P&gt;&lt;A href="https://xyz.portalserver.gov/server/rest/services/" target="_blank"&gt;https://xyz.portalserver.gov/server/rest/services/&lt;/A&gt;&lt;STRONG&gt;Geocoders&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It's been a few years and we're on a different version of Enterprise, so I'm not totally sure it would work the same as it did.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2026 14:23:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/overwriting-locator-python-but-it-changes/m-p/1687318#M17228</guid>
      <dc:creator>ChristenWatts</dc:creator>
      <dc:date>2026-02-27T14:23:29Z</dc:date>
    </item>
  </channel>
</rss>

