#### Migrate a member to a new account within the same Organization

# Requires admin role
# Useful when migrating to Enterprise Logins
# Reassigns all items/groups to new owner
# Adds userTo to all groups which userFrom is a member

from agoTools.admin import Admin
myAgol = Admin('<username>')  # Replace <username> your ADMIN account

# un-comment one of the lines below, depending on which workflow you wish to use

### for migrating a single account...
# myAgol.migrateAccount(myAgol, '<userFrom>', '<userTo>')   # Replace with usernames between which you are moving items

### for migrating multiple accounts...
# myAgol.migrateAccounts(myAgol, <path to user mapping CSV>)   # Replace with path to CSV file with col1=userFrom, col2=userTo
@@ -488,24 +488,16 @@
 Account(
-myAgol, 
 '%3CuserFr
@@ -648,16 +648,9 @@
 nts(
-myAgol, 
+'
 %3Cpat
@@ -671,16 +671,17 @@
 ing CSV%3E
+'
 )   # Re
@@ -735,12 +735,14 @@
  col2=userTo
+%0D%0A

Update migrateAccount.py