Esri / ago-tools

A Python package to assist with administering ArcGIS Online Organizations.
Apache License 2.0
87 stars 88 forks source link

Problem using migrateAccount() #49

Closed mquetel closed 8 years ago

mquetel commented 8 years ago

I'm trying to test the migrateAccount() function prior to moving our Org to enterprise logins. Having a problem getting it to run.

Given the script:

from agoTools.admin import Admin agolAdmin = Admin('pdx.admin') agolAdmin.migrateAccount('CSMike_demo_cofp', 'mike.quetel')

I'm getting the following runtime error:

C:\Tools>python migrate.py Password: Copying all items from CSMike_demo_cofp to mike.quetel... Traceback (most recent call last): File "migrate.py", line 3, in <module> agolAdmin.migrateAccount('CSMike_demo_cofp', 'mike.quetel') File "C:\Python27\ArcGIS10.4\lib\site-packages\agoTools\admin.py", line 353, in migrateAccount self.reassignAllUser1ItemsToUser2(self, userFrom, userTo) TypeError: reassignAllUser1ItemsToUser2() takes exactly 3 arguments (4 given) C:\Tools>

Would appreciate any assistance in the correct usage as it must be something simple I'm missing. Thanks in advance!

ecaldwell commented 8 years ago

I'll have to dig into this. This was reported back in #42 and it seems there may be other places this pops up.

In the meantime, you can try the standalone version of this script or check out ArcREST which is much more robust.

ecaldwell commented 8 years ago

Should be all fixed now @mquetel. Let me know if you have any other issues with it.