<?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: Publishing to a Group on Enterprise 11.1 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/publishing-to-a-group-on-enterprise-11-1/m-p/1488447#M70781</link>
    <description>&lt;P&gt;Being made a group manager solved the issue&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2024 19:24:58 GMT</pubDate>
    <dc:creator>BrandonMcAlister</dc:creator>
    <dc:date>2024-06-10T19:24:58Z</dc:date>
    <item>
      <title>Publishing to a Group on Enterprise 11.1</title>
      <link>https://community.esri.com/t5/python-questions/publishing-to-a-group-on-enterprise-11-1/m-p/1488384#M70776</link>
      <description>&lt;P&gt;Hey everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a script that creates a feature class then publishes the new feature layer to our enterprise portal and overwrites the layer currently published. Everything works as intended except for publishing the layer to the intended group, it only publishes to owner level sharing. I am able to publish it directly to folders under my name. The group ID I am using it coming from the url for the intended group I have used several iterations of the number string found in the url but have been unsuccessful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the first code sample under this url. &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/featuresharingdraft-class.htm#GUID-2B3FAB95-42AD-40A6-BE22-AC3E72DACF78" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/featuresharingdraft-class.htm#GUID-2B3FAB95-42AD-40A6-BE22-AC3E72DACF78&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just using the wrong group id or am I missing something else?&lt;/P&gt;&lt;P&gt;#read draft file&lt;BR /&gt;docs = DOM.parse(sddraftpath)&lt;BR /&gt;key_list = docs.getElementsByTagName('Key')&lt;BR /&gt;value_list = docs.getElementsByTagName('Value')&lt;/P&gt;&lt;P&gt;#Sharing level&lt;BR /&gt;Share_Organization = "false"&lt;BR /&gt;Share_Everyone = "false"&lt;BR /&gt;Share_Group = "true"&lt;/P&gt;&lt;P&gt;#Sharing to Deed Notice Inspection Tool Group&lt;BR /&gt;&lt;STRONG&gt;GroupID = "a49bff8206a1412991219a39ae4067ed"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;#write values&lt;BR /&gt;for i in range(key_list.length):&lt;BR /&gt;if key_list[i].firstChild.nodeValue == "PackageUnderMyOrg":&lt;BR /&gt;value_list[i].firstChild.nodeValue = Share_Organization&lt;BR /&gt;if key_list[i].firstChild.nodeValue == "PackageIsPublic":&lt;BR /&gt;value_list[i].firstChild.nodeValue = Share_Everyone&lt;BR /&gt;if key_list[i].firstChild.nodeValue == "PackageShareGroups":&lt;BR /&gt;value_list[i].firstChild.nodeValue = Share_Group&lt;BR /&gt;if Share_Group == "true" and key_list[i].firstChild.nodeValue == "PackageGroupIDs":&lt;BR /&gt;value_list[i].firstChild.nodeValue = GroupID&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 18:02:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/publishing-to-a-group-on-enterprise-11-1/m-p/1488384#M70776</guid>
      <dc:creator>BrandonMcAlister</dc:creator>
      <dc:date>2024-06-10T18:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing to a Group on Enterprise 11.1</title>
      <link>https://community.esri.com/t5/python-questions/publishing-to-a-group-on-enterprise-11-1/m-p/1488447#M70781</link>
      <description>&lt;P&gt;Being made a group manager solved the issue&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 19:24:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/publishing-to-a-group-on-enterprise-11-1/m-p/1488447#M70781</guid>
      <dc:creator>BrandonMcAlister</dc:creator>
      <dc:date>2024-06-10T19:24:58Z</dc:date>
    </item>
  </channel>
</rss>

