<?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 Portal Organization Items in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/portal-organization-items/m-p/132560#M1226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My app is logging in with a named user so I have a portal and a user (AGSPortal and AGSPortalUser). I want to list for the user all the web maps he or she has access to within their organization but not all the publicly available web maps out there. Here is what I've figured out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;user.fetchContent&lt;/STRONG&gt; - gets the user's own items&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;portal.findItems(with: AGSPortalQueryParameters)&lt;/STRONG&gt; - get all items meeting query, including freely open and available items.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to configure &lt;SPAN&gt;AGSPortalQueryParameters to return only all the items the user has access to in the organization? Or even better, is there a direct way to get the organization items?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Jan 2018 00:45:40 GMT</pubDate>
    <dc:creator>WorthSparks</dc:creator>
    <dc:date>2018-01-14T00:45:40Z</dc:date>
    <item>
      <title>Portal Organization Items</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/portal-organization-items/m-p/132560#M1226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My app is logging in with a named user so I have a portal and a user (AGSPortal and AGSPortalUser). I want to list for the user all the web maps he or she has access to within their organization but not all the publicly available web maps out there. Here is what I've figured out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;user.fetchContent&lt;/STRONG&gt; - gets the user's own items&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;portal.findItems(with: AGSPortalQueryParameters)&lt;/STRONG&gt; - get all items meeting query, including freely open and available items.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to configure &lt;SPAN&gt;AGSPortalQueryParameters to return only all the items the user has access to in the organization? Or even better, is there a direct way to get the organization items?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jan 2018 00:45:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/portal-organization-items/m-p/132560#M1226</guid>
      <dc:creator>WorthSparks</dc:creator>
      <dc:date>2018-01-14T00:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Portal Organization Items</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/portal-organization-items/m-p/132561#M1227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at the search parameters &lt;A href="https://doc.arcgis.com/en/arcgis-online/reference/search.htm#ESRI_SECTION1_18FD99A1020547BA864FCEBECBE267F3"&gt;here&lt;/A&gt;. You should be able to use either the&amp;nbsp;&lt;STRONG&gt;access&lt;/STRONG&gt; property or the&amp;nbsp;&lt;STRONG&gt;orgid&lt;/STRONG&gt;&amp;nbsp;term to build an &lt;STRONG&gt;AGSPortalQueryParameters&lt;/STRONG&gt;&amp;nbsp;using &lt;STRONG&gt;&lt;A href="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_portal_query_parameters.html#ab78b2a0d597977c0198c441a529262e2"&gt;queryParametersWithQuery()&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;to pass to the &lt;STRONG&gt;portal.findItems()&lt;/STRONG&gt; call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use &lt;STRONG&gt;orgid&lt;/STRONG&gt;, you can get it from &lt;STRONG&gt;portal.portalInfo.organizationID&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, since this could return a lot of items, consider&amp;nbsp;paging through the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how that goes!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 14:58:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/portal-organization-items/m-p/132561#M1227</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2018-01-16T14:58:49Z</dc:date>
    </item>
  </channel>
</rss>

