<?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: Searching for items marked as authoritative in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/searching-for-items-marked-as-authoritative/m-p/1556770#M73161</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/712076"&gt;@CodyPatterson&lt;/a&gt;&amp;nbsp;but... I have answered my own question....&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this page&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/search-reference/" target="_blank"&gt;Search reference | ArcGIS REST APIs | ArcGIS Developers&lt;/A&gt;&amp;nbsp;has the term contentStatus which does not work. But this non python page on advanced search has the term contentstatus . This does work!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":loudly_crying_face:"&gt;😭&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To add to the confusion I have to use contentstatus:public_authoritative (or org_authoritative) as authoritative alone is not a recognised value. This is as written on the API page next to contentStatus.&lt;/P&gt;&lt;P&gt;My status is now:&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":expressionless_face:"&gt;😑&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2024 13:19:45 GMT</pubDate>
    <dc:creator>RobGordon1</dc:creator>
    <dc:date>2024-11-08T13:19:45Z</dc:date>
    <item>
      <title>Searching for items marked as authoritative</title>
      <link>https://community.esri.com/t5/python-questions/searching-for-items-marked-as-authoritative/m-p/1556757#M73159</link>
      <description>&lt;P&gt;I am using the ArcGIS python API as I would like to count items in my agol that are marked as authoritative. I have been able to search by owner and type but I cannot get the contentStatus search term to work at all. I have read the documentation over and over and I just can't figure out what is wrong.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;auth_items&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;gis&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;content&lt;/SPAN&gt;&lt;SPAN&gt;.search(&lt;/SPAN&gt;&lt;SPAN&gt;query&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'contentStatus:public_authoritative'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;max_items&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;auth_no&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;len&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;auth_items&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;auth_no&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks! &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Nov 2024 12:32:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/searching-for-items-marked-as-authoritative/m-p/1556757#M73159</guid>
      <dc:creator>RobGordon1</dc:creator>
      <dc:date>2024-11-08T12:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for items marked as authoritative</title>
      <link>https://community.esri.com/t5/python-questions/searching-for-items-marked-as-authoritative/m-p/1556762#M73160</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/840859"&gt;@RobGordon1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you try to search for this here:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;auth_items = gis.content.search(query='contentStatus:authoritative', max_items=100)&lt;/LI-CODE&gt;&lt;P&gt;I think it falls into a general category of authoritative, I've seen this here too:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CodyPatterson_0-1731070192253.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/119137iCCF8548E2182198F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CodyPatterson_0-1731070192253.png" alt="CodyPatterson_0-1731070192253.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 12:49:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/searching-for-items-marked-as-authoritative/m-p/1556762#M73160</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-11-08T12:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for items marked as authoritative</title>
      <link>https://community.esri.com/t5/python-questions/searching-for-items-marked-as-authoritative/m-p/1556770#M73161</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/712076"&gt;@CodyPatterson&lt;/a&gt;&amp;nbsp;but... I have answered my own question....&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this page&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/search-reference/" target="_blank"&gt;Search reference | ArcGIS REST APIs | ArcGIS Developers&lt;/A&gt;&amp;nbsp;has the term contentStatus which does not work. But this non python page on advanced search has the term contentstatus . This does work!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":loudly_crying_face:"&gt;😭&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To add to the confusion I have to use contentstatus:public_authoritative (or org_authoritative) as authoritative alone is not a recognised value. This is as written on the API page next to contentStatus.&lt;/P&gt;&lt;P&gt;My status is now:&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":expressionless_face:"&gt;😑&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 13:19:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/searching-for-items-marked-as-authoritative/m-p/1556770#M73161</guid>
      <dc:creator>RobGordon1</dc:creator>
      <dc:date>2024-11-08T13:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for items marked as authoritative</title>
      <link>https://community.esri.com/t5/python-questions/searching-for-items-marked-as-authoritative/m-p/1556780#M73162</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/840859"&gt;@RobGordon1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Definitely quite a lot of strangeness! I seem to be left as that status quite often when attempting to read through some of the documentation unfortunately.&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 13:55:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/searching-for-items-marked-as-authoritative/m-p/1556780#M73162</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-11-08T13:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for items marked as authoritative</title>
      <link>https://community.esri.com/t5/python-questions/searching-for-items-marked-as-authoritative/m-p/1684407#M75114</link>
      <description>&lt;P&gt;A couple of years too late, but hopefully valuable to others.&lt;/P&gt;&lt;P&gt;Per Copilot:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"authoritative" is often used in some older examples.&lt;/LI&gt;&lt;LI&gt;"org_authoritative" is what many current orgs actually return for items marked authoritative within that organization.&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
import pyodbc

# 1. Reuse your ArcGIS Pro login (no credentials in code)
gis_portal = GIS("pro")

# 2. Types we consider "webapps" for the techfolio
types = [
    "Web Mapping Application",
    "Dashboard",
    "Web Experience"
]

all_webapps = []

for t in types:
    # Exclude items owned by esri_apps at the search stage
    # You can add more owners later if needed: 'AND -owner:esri'
    items = gis_portal.content.search(
        query='-owner:esri_apps',   # exclude Esri's org apps
        item_type=t,
        max_items=1000
    )
    all_webapps.extend(items)

print(f"Total webapps found (owner != esri_apps): {len(all_webapps)}")

# 3. Filter to authoritative only using the Item.content_status property
authoritative_apps = []

for item in all_webapps:
    status = (getattr(item, "content_status", "") or "").strip().lower()
    # Debug – optional: see status for your items
    print(item.title, "| owner:", item.owner, "| status:", repr(status))

    if status == "org_authoritative":
        authoritative_apps.append(item)

print(f"Authoritative webapps (excluding owner esri_apps): {len(authoritative_apps)}")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 19:29:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/searching-for-items-marked-as-authoritative/m-p/1684407#M75114</guid>
      <dc:creator>Abe_808</dc:creator>
      <dc:date>2026-02-13T19:29:34Z</dc:date>
    </item>
  </channel>
</rss>

