Get auto migration users

Fetch all MailUsers created for (via) automatic migration

  • HTTP Method: GET
  • URL: https://example.domain.tld/api/v1/automigration/users/
  • Require authentication: Yes
  • Permission level required: MasterAdmin / DomainAdmin

Response parameters

Parameter Type Description
automigration_users list List of all MailUsers created for automatic migration
expire_time int Expire time for auto migration as UNIX timestamp (seconds)
status str Short status of automatic migration
message str Status message of automatic migration
username str MailUser created for (via) automatic migration

Example request (Python)

import requests
import json
from pprint import pprint

url = "https://example.domain.tld/api/v1/automigration/users/"
r = requests.get(url, auth=("admin","long-auth_token-here"))
try:
    pprint(r.json())
except:
    print(r.text)

Example response (JSON)

{'automigration_users': [{'expire_time': 1590435091,
                          'status': 'migrated',
                          'message': 'success with no errors',
                          'username': 'test@cheapmailhosting.com'},
                         {'expire_time': 1591600580,
                          'status': 'migrated',
                          'message': 'success with few errors',
                          'username': 'test@vonmail.com'}]}