portalqueryparams all FSL I have access to

194
2
08-27-2024 05:05 PM
KaraKay
New Contributor

Hello, I'm trying to get a list of all the feature services that my current user has access to, including groups items. I can use 

query: `(type:"Feature Service")

 

but that returns all of the living atlas layers as well. I currently am using orgid in my query, but that limits me to things that are in my org- not things that are shared with me via a group that I am in.
 
Looking at the docs doesn't mention a way to filter these out.
 
Is there a way to get all the layers I have access to but without the living atlas layers?
 
Thank you!
Kara
0 Kudos
2 Replies
LaurenBoyd
Esri Contributor

Hi @KaraKay -

Can you try adding the typekeywords field to omit "LivingAtlas" layers to your query? Something like:

 

query: `-typekeywords: LivingAtlas (type:("Feature Service"))`

 

The search reference can be found here: https://developers.arcgis.com/rest/users-groups-and-items/search-reference/ 

Here's an example codepen with this query as well: https://codepen.io/laurenb14/pen/NWQMOVJ?editors=1000 

Hope this helps!

Lauren
0 Kudos
KaraKay
New Contributor

Hi Lauren! Thanks for the help. I'm still getting extra layers.

Example: the first layer listed here is "- Item title: Bundesländergrenzen 2018". I want things that I have access to, but without these extra public things. Just my orgs layers and the ones shared with me via my groups.

0 Kudos