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:
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?
Take a look at the search parameters here. You should be able to use either the access property or the orgid term to build an AGSPortalQueryParameters using queryParametersWithQuery() to pass to the portal.findItems() call.
If you use orgid, you can get it from portal.portalInfo.organizationID.
Also, since this could return a lot of items, consider paging through the results.
Let me know how that goes!