# Requires admin role.
import csv, time
from agoTools.admin import Admin

agoAdmin = Admin(<username>) # Replace <username> with your admin username.
users = agoAdmin.getUsers()

outputFile = 'c:/temp/users.csv'

with open(outputFile, 'wb') as output:
    dataWriter = csv.writer(output, delimiter=',', quotechar='|', quoting=csv.QUOTE_MINIMAL)
    # Write header row.
    dataWriter.writerow(['Full Name', 'Email', 'Username', 'Role', 'Date Created'])
    # Write user data.
    for user in users:
        dataWriter.writerow([user['fullName'], user['email'], user['username'], user['role'], time.strftime("%Y-%m-%d",time.gmtime(user['created']/1000))])
@@ -556,23 +556,55 @@
 me'%5D
-, user%5B'email'%5D
+.encode('utf-8'), user%5B'email'%5D.encode('utf-8')
 , us
@@ -617,16 +617,32 @@
 ername'%5D
+.encode('utf-8')
 , user%5B'
@@ -710,8 +710,10 @@
 1000))%5D)
+%0D%0A

Update createUserListCSV.py