{"action":"created","issue":{"url":"https://api.github.com/repos/Esri/ago-tools/issues/49","repository_url":"https://api.github.com/repos/Esri/ago-tools","labels_url":"https://api.github.com/repos/Esri/ago-tools/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/Esri/ago-tools/issues/49/comments","events_url":"https://api.github.com/repos/Esri/ago-tools/issues/49/events","html_url":"https://github.com/Esri/ago-tools/issues/49","id":159202975,"number":49,"title":"Problem using migrateAccount()","user":{"login":"mquetel","id":214979,"avatar_url":"https://avatars.githubusercontent.com/u/214979?v=3","gravatar_id":"","url":"https://api.github.com/users/mquetel","html_url":"https://github.com/mquetel","followers_url":"https://api.github.com/users/mquetel/followers","following_url":"https://api.github.com/users/mquetel/following{/other_user}","gists_url":"https://api.github.com/users/mquetel/gists{/gist_id}","starred_url":"https://api.github.com/users/mquetel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mquetel/subscriptions","organizations_url":"https://api.github.com/users/mquetel/orgs","repos_url":"https://api.github.com/users/mquetel/repos","events_url":"https://api.github.com/users/mquetel/events{/privacy}","received_events_url":"https://api.github.com/users/mquetel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-08T15:59:12Z","updated_at":"2016-06-09T15:56:30Z","closed_at":null,"body":"I'm trying to test the migrateAccount() function prior to moving our Org to enterprise logins. Having a problem getting it to run.  \r\n\r\nGiven the script:\r\n\r\n`from agoTools.admin import Admin`\r\n`agolAdmin = Admin('pdx.admin')`\r\n`agolAdmin.migrateAccount('CSMike_demo_cofp', 'mike.quetel')`\r\n\r\n\r\nI'm getting the following runtime error:\r\n\r\n`C:\\Tools>python migrate.py`\r\n`Password:`\r\n`Copying all items from CSMike_demo_cofp to mike.quetel...`\r\n`Traceback (most recent call last):`\r\n`  File \"migrate.py\", line 3, in <module>`\r\n`    agolAdmin.migrateAccount('CSMike_demo_cofp', 'mike.quetel')`\r\n`  File \"C:\\Python27\\ArcGIS10.4\\lib\\site-packages\\agoTools\\admin.py\", line 353, in migrateAccount`\r\n`    self.reassignAllUser1ItemsToUser2(self, userFrom, userTo)`\r\n`TypeError: reassignAllUser1ItemsToUser2() takes exactly 3 arguments (4 given)`\r\n`C:\\Tools>`\r\n\r\nWould appreciate any assistance in the correct usage as it must be something simple I'm missing.  Thanks in advance!"},"comment":{"url":"https://api.github.com/repos/Esri/ago-tools/issues/comments/224940610","html_url":"https://github.com/Esri/ago-tools/issues/49#issuecomment-224940610","issue_url":"https://api.github.com/repos/Esri/ago-tools/issues/49","id":224940610,"user":{"login":"ecaldwell","id":240542,"avatar_url":"https://avatars.githubusercontent.com/u/240542?v=3","gravatar_id":"","url":"https://api.github.com/users/ecaldwell","html_url":"https://github.com/ecaldwell","followers_url":"https://api.github.com/users/ecaldwell/followers","following_url":"https://api.github.com/users/ecaldwell/following{/other_user}","gists_url":"https://api.github.com/users/ecaldwell/gists{/gist_id}","starred_url":"https://api.github.com/users/ecaldwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecaldwell/subscriptions","organizations_url":"https://api.github.com/users/ecaldwell/orgs","repos_url":"https://api.github.com/users/ecaldwell/repos","events_url":"https://api.github.com/users/ecaldwell/events{/privacy}","received_events_url":"https://api.github.com/users/ecaldwell/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T15:56:30Z","updated_at":"2016-06-09T15:56:30Z","body":"I'll have to dig into this. This was reported back in #42 and it seems there may be other places this pops up.\r\n\r\n In the meantime, you can try the [standalone version of this script](https://github.com/ecaldwell/portal-admin-examples/blob/master/migrateAccount.py) or check out [ArcREST](https://github.com/Esri/ArcREST) which is much more robust.\r\n"}}
{"actor":{"display_login":"ecaldwell"}}