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

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

# for migrating a batch of accounts...
myAgol.migrateAccounts(myAgol, <path to user mapping CSV>)   # Replace with path to CSV file with col1=userFrom, col2=userTo

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
Enhance comments in Migrate Account sample
Enhance comments in Migrate Account sample

  
  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 a batch of accounts...
+ ### 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
+ # myAgol.migrateAccounts(myAgol, <path to user mapping CSV>)   # Replace with path to CSV file with col1=userFrom, col2=userTo
Enhance comments in Migrate Account sample
## Code Before:

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

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

# for migrating a batch of accounts...
myAgol.migrateAccounts(myAgol, <path to user mapping CSV>)   # Replace with path to CSV file with col1=userFrom, col2=userTo
## Instruction:
Enhance comments in Migrate Account sample
## Code After:

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