Skip to content

Auto-sync Mobile ID users with your access control system

To avoid manually keeping the user list in Mobile ID Manager up-to-date, you can set up Auto-sync. Then, the user list is regularly synchronized with user data exported as a CSV file from your access control system. This means:

  • New users are added and invited.
  • Existing users whose data has changed will be updated.
  • Existing users not included in the CSV file will be deleted and will be notified via e-mail.

Requirements

Your access control system needs to meet the following requirements:

  • Run on a Windows platform with Windows Task Scheduler installed
  • Support regular automated CSV exports of the user data required by Mobile ID Manager

Setup

Set up CSV file export from access control system

  1. Set up your access control system to regularly export a CSV file that contains the following columns of user data in the given order:

    • First name
    • Last name
    • E-mail address
    • ID

      What is this?

      The ID is read by the reader when the user presents their phone.

      • If the user has a physical ID card as well and you don't want to distinguish between card and phone use, enter the card ID as it's specified in the access control system.

      • If the user does not have a physical ID card, or you do want to distinguish between card and phone use, enter an ID of your choice and specify it in the access control system as well, if needed via a second entry for that user.

    • Sync ID (optional, but recommended):

      What is this?

      The sync ID is a unique identifier that certain access control systems assign to each user. If this column is included, Mobile ID Manager will also use it to uniquely identify a user, without displaying it in the user list.

      If the sync ID column is missing in the CSV file, Mobile ID Manager will use the e-mail address as the unique identifier instead. In this case, however, a user whose e-mail address changes will be deleted and re-invited.

      Thus, the sync ID is a more reliable unique identifier, so we recommend you include it in the CSV file export if your access control supports this.

    Here's an example CSV file (including the optional sync ID column):
    Example CSV file with user data for auto-sync with BALTECH Mobile ID Manager

  2. Name the file mobile-id-users.csv and export it to the Home directory of the logged-in user.
    If you use a different name or location, you need to later change the default settings when setting up the CSV file import in Windows Task Scheduler (see next chapter).

Set up CSV file import to Mobile ID Manager using Windows Task Scheduler

  1. Log in to the admin web application Mobile ID Manager.
  2. In the Settings section, click Download task config.
    An XML file named autosync_<your-project-name> is downloaded.

    Download task config to set up auto-sync with access control system for BALTECH Mobile ID

  3. Open Windows Task Scheduler (preinstalled by default on most Windows platforms).

  4. In the Actions panel on right, click Import Task... and select the XML file.

    Import BALTECH Mobile ID Auto-sync task to Windows Task Scheduler

  5. As an option, you can change the default settings in the task config:

    • In the General tab, you can change the Name of the task.
      By default, it's the name of the XML file.

    General tab of BALTECH Mobile ID Auto-sync task to Windows Task Scheduler

    • In the Triggers tab, you can change the frequency of task execution.
      By default, it's executed once per hour.

    Triggers tab of BALTECH Mobile ID Auto-sync task to Windows Task Scheduler

    • In the Actions tab, you can change the name and location of the CSV file to import.
      By default, the task expects a file named mobile-id-users.csv, located in the Home directory of the logged-in user.

      • You can change the file name by editing the parameter of the InFile argument in the Add arguments field.
      • You can change the location in the Start in field.

    Actions tab of BALTECH Mobile ID Auto-sync task to Windows Task Scheduler

  6. Click OK.
    The task is created, and Auto-sync is now active. You can view the task in the Task Scheduler Library.

    BALTECH Mobile ID Auto-sync task in Windows Task Scheduler Library

Test Auto-sync

If you don't want to wait until Task Scheduler performs the task for the first time, you can test Auto-sync immediately by manually running the task.

To run the task:

  1. In the Task Scheduler Library, select the task.
  2. In the Actions panel on the right, click Run.

    Manually run BALTECH Mobile ID Auto-sync task in Windows Task Scheduler

  3. If task execution was successful, you'll now see a blue info box in the Settings section of Mobile ID Manager, displaying the date and time of the completed Auto-sync.

    Date and time of last completed Auto-sync displayed BALTECH Mobile ID Manager

    If task execution failed due to errors in the CSV file, you'll receive an e-mail (see next chapter).

Error reporting

If, at any time, an exection of the Auto-sync task fails due to errors in the CSV file, you'll receive an e-mail with the errors detected. Here's an example:

E-mail with errors in CSV file sent by BALTECH Mobile ID Manager after Auto-sync failed

Change settings in task config

To change settings in the task config later, i.e. task name, execution frequency or filepath, double-click the task in the Task Scheduler Library and make the required changes in the dialog.

Stop Auto-sync

To stop Auto-sync you can diable or delete the task in Task Scheduler.

To disable or delete the task:

  1. In the Task Scheduler Library, select the task.
  2. In the Actions panel on the right, click Disable to temporarily disable the task, or click Delete to permanently delete it.

    Diable or delete BALTECH Mobile ID Auto-sync task in Windows Task Scheduler

Title