AnsweredAssumed Answered

Group search in Portal does not work with wildcards

Question asked by xtian79 on Sep 11, 2018

Hello fellows, 

 

I am using the ArcGIS API for Python, and I want to to search for a groups previously created. I am using a wild card, but it returns an empty array. 

 

from arcgis import gis
source = gis.GIS(sourceURL, sourceAdmin, sourcePassword)

source.groups.search('title:"*"')
[<Group title:"DevStage" owner:admin>, <Group title:"Esri Boundary Layers" owner:esri_boundaries>, <Group title:"Esri Demographic Layers" owner:esri_demographics>, <Group title:"Featured Maps and Apps" owner:admin>, <Group title:"Living Atlas" owner:esri_livingatlas>, <Group title:"Living Atlas Analysis Layers" owner:esri_livingatlas>, <Group title:"Navigator Maps" owner:esri_nav>]

 

>>> source.groups.search('title:"DevStage"')
[<Group title:"DevStage" owner:admin>]

 

>>> source.groups.search('title:"*Stage"')
[]

 

Any suggestion? What am I doing wrong? is this a bug in the API?

 

thanks!!

Outcomes