Configure ArcGIS Enteprise Idp with Python for Arcgis

444
0
10-31-2020 01:12 AM
NicolasGIS
Occasional Contributor III

Hello,

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': "portal.company.com.geoportal",
   '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,
https://portal.company.com/geoportal/sharing/portals/self/idp?f=json returns 200 but no JSON. Just a...

Any idea what I am doing wrong ?

Thanks

Tags (3)
0 Kudos
0 Replies