Unable to create a hubsite on ArcGIS Enterprise

268
0
08-03-2022 05:03 AM
MariamJamilah
New Contributor III

Hello,

I have created a script that runs as a GP tool on ArcGIS Pro. The script creates a new hubsite on ArcGIS Enterprise. I am using the following versions:

ArcGIS Pro 3.0

ArcGIS Python API 2.0.1 

ArcGIS Hub 2.1.0 (installed as per the given link: https://www.esri.com/arcgis-blog/products/arcgis-hub/announcements/introducing-arcgis-hub-python-api...

ArcGIS Enterprise 10.9.1 and 11 (have tested tool on both the enterprise versions)

However, when I try to run the following lines of code as part of my script

 

import arcgishub
from arcgishub import hub
target_hub = hub.Hub(url=portal_url, username=username, password=password, verify_cert=False)
hub_site_item_title = "Test Site"
new_initiative = target_hub.sites.add(hub_site_item_title)

 

I get the below error:

Exception: Unable to create group.
You do not have permission to create groups with external members.
(Error Code: 400)

But the same lines of code work with the older version of ArcGIS Python API (1.8.5) and ArcGIS Pro (2.8.2) on ArcGIS Enterprise 10.9.1 and 11

Please help!

 

Thanks!

0 Kudos
0 Replies