<?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: Python &amp;quot;group&amp;quot; object in Item properties dictionary ?   in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-quot-group-quot-object-in-item-properties/m-p/875724#M4891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A &lt;EM&gt;Group&lt;/EM&gt; in the ArcGIS API for Python is a class that represents a group in ArcGIS Online/Portal. The documentation for it is available here:&amp;nbsp;&lt;A class="link-titled" href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html#group" title="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html#group"&gt;arcgis.gis module — arcgis 1.5.0 documentation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you are seeing list of&amp;nbsp;&lt;EM&gt;Group&lt;/EM&gt; objects.&lt;/P&gt;&lt;P&gt;You can access different properties such as the title by&amp;nbsp;&lt;EM&gt;group.title&lt;/EM&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2018 12:25:58 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2018-10-29T12:25:58Z</dc:date>
    <item>
      <title>Python "group" object in Item properties dictionary ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-quot-group-quot-object-in-item-properties/m-p/875723#M4890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to find out which AGOL groups particular objects belong to, and in doing so seem to have come across a python &amp;nbsp;"group" object within a dictionary, which is difficult to access. I looked it up and the only "group type" object in python I find reference to is h5py "group" objects, but that is not it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this is what I am trying to do: I have an AGOL item, and I want to know what AGOL groups this item belongs to. This information can be found when calling "shared_with", which returns a dictionary:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;print (item.shared_with)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns: &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{'everyone': False, 'org': False, 'groups': [&amp;lt;Group title:"Group name" owner:some_user&amp;gt;]}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought that what is (within the dictionary) in the list i.e. between [ &amp;nbsp;and &amp;nbsp;] is a string i.e I though that this is a string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;Group title:"&lt;/SPAN&gt;&lt;SPAN&gt;Group name&lt;/SPAN&gt;&lt;SPAN&gt;" owner:some_user&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I use some string functions on it, like split, it complains that this is not a string object:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AttributeError: 'Group' object has no attribute 'split'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I know the use of the term "group" is confusing here, I am looking for AGOL groups and the name 'group' also appears in what is returned between &amp;lt; &amp;gt;), but what I think is what is between &amp;lt; &amp;gt; is &amp;nbsp;also some sort of a python "group" &lt;EM&gt;object.&lt;/EM&gt;) &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So whatever is between &amp;lt; &amp;nbsp; and &amp;nbsp; &amp;gt; &amp;nbsp;is a python "group" object? To be honest I have never heard of it and googling does not help either. Anyone knows what kind of object this is and how to access it? It is not a string, that's for sure. &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hugo&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 08:33:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-quot-group-quot-object-in-item-properties/m-p/875723#M4890</guid>
      <dc:creator>HugoBouckaert1</dc:creator>
      <dc:date>2018-10-29T08:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Python "group" object in Item properties dictionary ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-quot-group-quot-object-in-item-properties/m-p/875724#M4891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A &lt;EM&gt;Group&lt;/EM&gt; in the ArcGIS API for Python is a class that represents a group in ArcGIS Online/Portal. The documentation for it is available here:&amp;nbsp;&lt;A class="link-titled" href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html#group" title="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html#group"&gt;arcgis.gis module — arcgis 1.5.0 documentation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you are seeing list of&amp;nbsp;&lt;EM&gt;Group&lt;/EM&gt; objects.&lt;/P&gt;&lt;P&gt;You can access different properties such as the title by&amp;nbsp;&lt;EM&gt;group.title&lt;/EM&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 12:25:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-quot-group-quot-object-in-item-properties/m-p/875724#M4891</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-10-29T12:25:58Z</dc:date>
    </item>
  </channel>
</rss>

