PROBLEM

Unable to query the list of groups in Portal for ArcGIS using ArcGIS API for Python

Last Published: April 25, 2020

Description

Attempting to query the list of groups in Portal for ArcGIS using ArcGIS API for Python in Jupyter notebook returns an empty result.

The following syntax is used to perform the query:

from arcgis.gis import GIS
gis = GIS("<portal URL>", "<username>", "<password>")

groups = gis.groups.search()
groups

Cause

The groups in Portal for ArcGIS are not indexed properly. To check the index status of Portal for ArcGIS, navigate to the Portal Administrator Directory page, and click System > Indexer > Index Status. Notice the discrepancy between the store and index count.

Solution or Workaround

To resolve the issue, follow the steps below:

  1. Reindex Portal for ArcGIS.
    1. Log in to Portal Administrator Directory with a role that has administrator privileges. Use the following URL:
https://machinename.domain.com:7443/arcgis/portaladmin/
  1. In the Portal Administrator Directory page, click System > Indexer > Reindex.
  2. In the Reindex page, click the Mode drop-down list, and select Full. Leave all other settings at default.
  3. Click Reindex.
  1. Query the list of groups in the Portal for ArcGIS organization using ArcGIS API for Python.

Article ID:000018795

Software:
  • Portal for ArcGIS
  • ArcGIS API for Python 1 x

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic