AnsweredAssumed Answered

Portal Organization Items

Question asked by worthsparks on Jan 13, 2018
Latest reply on Jan 16, 2018 by NFurness-esristaff

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:

 

  • user.fetchContent - gets the user's own items
  • portal.findItems(with: AGSPortalQueryParameters) - get all items meeting query, including freely open and available items.

 

Is there a way to configure 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?

Outcomes