IT guide: set up the directory via MDM

You need an MDM/UEM that can push managed configuration to Android apps. Pilot with 1–2 devices first.

1. Prepare the directory

  1. Export it as vCard (.vcf), CSV or JSON. Each contact needs a stable id: if it changes, the app treats it as a different contact.
  2. Large directories (vCard/CSV): host them at an HTTPS URL (intranet or cloud storage). Small ones: you can paste single-line minified JSON.

JSON example: [{"id":"emp-001","given_name":"Ana","family_name":"Lopez","phone_work":"+1 555 0100","email_work":"ana@company.com"}]

2. Paste the configuration in your MDM

  1. Add SecureContacts (com.adrimg.securecontacts) from managed Google Play and assign it to devices.
  2. Open its managed configuration (often called “App configuration”).
  3. Set contacts_source to the HTTPS URL or the JSON. Leave contacts_format as auto.
  4. If you use a URL, set download_allowed_hosts to its domain (e.g. intranet.company.com). Empty means URL downloads are blocked.
  5. If the file sits on an internal server with a private IP, turn off block_private_ips; otherwise keep it on.
  6. Grant the app the Contacts permission through your MDM policy. The current version does not ask the employee for it; without it, sync fails.
  7. Save and push the policy.

Useful options

3. Check it works

  1. On a test device, open SecureContacts.
  2. It should show “Company directory ready”, “Configuration applied from: MDM” and “Synced contacts: N” with the expected count.
  3. Tap “Open Contacts app” and search for a directory contact.
  4. Change a contact, re-push the policy and tap “Sync now” to see it without waiting.
  5. If you see “Último error”, check download_allowed_hosts, the URL and the Contacts permission (see troubleshooting).

When it updates

Open the app once; after that it syncs in the background (every 6 hours by default; Android may delay it) and with the “Sync now” button. Installed from managed Google Play. MDM changes are not instant: today the most reliable path is for the employee to open the app once after a change.