Select to view content in your preferred language

Creating bulk users with csv

538
2
10-02-2023 04:23 PM
chill_gis_dude
Regular Contributor

Hello,

Is anyone able to get this script to bulk create users from a csv working?

https://enterprise.arcgis.com/en/server/10.8/develop/linux/example-create-users-and-roles-from-a-csv...

I keep getting the error that raw_input is not defined? 

 

Thank you for any help.

0 Kudos
2 Replies
ReeseFacendini
Esri Regular Contributor

It sounds like you're using Python 3.X to run that example, instead of Python 2.X. "raw_input()" was changed to be "input()" at 3.X so I would try updating that piece and see if that removes the error

0 Kudos
chill_gis_dude
Regular Contributor

Thank you for your response. If I try with "input()" i get this error message: 

RuntimeError: input(): lost sys.stdin

I also get errors that the print statements dont have parenthesis, but I added them. I'm just wondering, is this script meant to run from ArcGIS Pro's Python IDLE? 

0 Kudos