Category filter

Configuration profile to set up Google Accounts settings for iOS

This document describes how to create and deploy a custom configuration profile to specify Google Accounts settings for iOS devices.

Setting up a corporate Google account on a device gives users easier access to various Google services such as Gmail, Google Drive, Google Calendar, and Google Contacts. Use Hexnode’s Deploy Custom Configuration feature to deploy the following configuration profile to set up Google accounts on an iOS device remotely. After configuring the account on the device, users need to authenticate it to complete the setup process. Upon successful authentication, users can access their Google services seamlessly on their iOS devices.

Disclaimer:


The configuration profile provided below is adapted from a third-party open-source site.

Notes:


This configuration profile is supported on devices running:

  • iOS 9.3 or later.
  • iPadOS 9.3 or later.

Setup Google accounts

The following configuration profile uses the Google Accounts payload (com.apple.google-oauth) to setup Google accounts on the device. This configured Google account can also be used to other Google services such as Mail, Contacts, Calendars, and Notes on the device.

The table below shows the keys used in the configuration profile along with their functionality.

Keys Description
AccountDescription A display name for the Google account that will be shown in the Mail and Settings apps on the iOS device.
AccountName The user’s full name associated with their Google account. This name will appear in the “From” field of sent messages.
CommunicationServiceRules A key that manages which application should be used to handle audio calls made to contacts associated with this Google account.
Notes:


This key is supported only on devices running iOS 10 and later.

DefaultServiceHandlers A dictionary of CommunicationServiceRules defines which app to use for audio calls from this account.
AudioCall A dictionary that handles the bundle identifier for the default application that handles audio calls to contacts from this account.
EmailAddress The complete email address associated with the user’s Google account.

Sample configuration profile

The following sample configuration profile sets up the Google Account for the account “Miller Cooper”.

You can push multiple configurations on a single device to set up multiple Google accounts on the device. Disassociating the configuration profile from the device will remove all the Google accounts configured on the device.

What happens at the device end?

Once the configuration profile is deployed to the devices, the configured Google account settings can be accessed from the Settings app under Mail/Contacts/Calendars > Accounts > Gmail.

Note that the configuration profile does not support configuring the password for the Google account. Therefore, the user will need to manually enter the password for the respective Google account on the device to complete the setup. After successful authentication, the configured Google account will be added to the device.

You can also view the account by navigating to Settings > General > Device Management, selecting the Hexnode MDM profile, and then clicking on ‘Accounts’.

  Configured Google Accounts settings on iOS devices

Notes:

  • To create and customize configuration profiles, you can use tools like Apple Configurator, Profile Manager or manually create them using text editors.
  • Use non-encrypted .mobileconfig, .xml, or plist files to deploy profiles across macOS devices.
  • Ensure that you do not associate conflicting configurations with the devices.
  • It is recommended to manually validate the configuration profile execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the configuration profile.

  • Configuration Profile Repository