Configure ArcGIS Enteprise Idp with Python for Arcgis

10-31-2020 01:12 AM
Occasional Contributor III


I am trying to configure ArcGIS Enteprise IDP with Python for Arcgis but I am facing an issue.

The following code to create the Idp is failing:

from arcgis.gis.admin import AGOLAdminManager

#ent_gis being my ArcGIS Enterprise GIS instance of GIS class  

AGOLAdminManager(ent_gis).idp.configuration = {
   'name': 'IDP Account',
   'idpMetadataFile' : 'C:/Temp/federationmetadata.xml',
   'entityId': "",
   'signUpMode': 'Automatic',
   'encryptionSupported': False,
   'supportSignedRequest': False,
   'useSHA256': False,
   'supportsLogoutRequest': False,
   'updateProfileAtSignin': True,
   'updateGroupsAtSignin': True

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

If I create IDP manually, the command works because then in that case it would update the properties.

In the documentation it is stated for the configuration property of the identityprovidermanager class
"Gets, updates, or Adds a SAML provider", so I believe it should also be able initialize it:

arcgis.gis.admin module — arcgis 1.8.2 documentation 

I wonder if it could be related to the fact that when IDP is not configured on the portal, returns 200 but no JSON. Just a...

Any idea what I am doing wrong ?


Tags (3)
0 Kudos
0 Replies