Add new members to enterprise portal via SAML using ArcGIS API for Python

559
1
05-28-2022 02:39 PM
rachelxlb
New Contributor II

How do I add new members to enterprise portal via SAML using ArcGIS API for Python? I know that in the Python API code has the gis.users.create method to add new members, but it requires password. There is a way to add members manually by uploading a csv file via SAML. To automate it, I want to put it in a script. Is there a login script to use built-in identity or SAML?

 

0 Kudos
1 Reply
mylktea
New Contributor II

There's an example script in Python: https://enterprise.arcgis.com/de/portal/10.5/administer/windows/example-add-members-to-the-portal.ht...

You can try this out or use the Batch Script of Esri "CreateUsers.bat" but you need a .csv or .txt file with member usernames, e-mail, license type but no password. You can find the Batch Skript at <Portal for ArcGIS installation location>\tools\accountmanagement. You just have to execute the .bat file and give the location of your text file as a parameter.

0 Kudos