Google Workspace Import Does Not Populate Mobile Phone (phonesWorkMobileValue) for Google type=mobile Phone Numbers in Okta

Okta Classic Engine
Okta Identity Engine
Lifecycle Management

Overview

The default base attribute phonesWorkMobileValue remains null when an organization stores mobile phone numbers under Google's standard type="mobile" rather than type="work_mobile". Add the Phones Mobile Value (phonesMobileValue) attribute to the Google Workspace App User profile in Okta and update the profile mappings to resolve this issue. When Okta imports users from Google Workspace, Google phone numbers that use type="mobile" do not populate the default Google Workspace App User attribute Mobile phone (phonesWorkMobileValue), leaving the Okta User mobilePhone attribute empty.

Applies To

  • Okta Identity Engine (OIE)
  • Okta Classic Engine
  • Google Workspace Provisioning Integration
  • Lifecycle Management (LCM)
  • Universal Directory (UD) / Profile Editor
  • Profile Sourcing / User Import

Cause

The Google Workspace Directory Application Programming Interface (API) stores user phone numbers in a multi-valued phones[] array where each entry specifies a type (such as work, work_mobile, mobile, or home) and a value. The Okta Google Workspace connector flattens each entry in the phones[] array into a distinct scalar attribute using the naming convention phones<TypeInCamelCase>Value:

  • Google type="work" maps to phonesWorkValue (the default Base schema includes this as Primary phone).
  • Google type="work_mobile" maps to phonesWorkMobileValue (the default Base schema includes this as Mobile phone).
  • Google type="mobile" maps to phonesMobileValue (an unmapped attribute named Phones Mobile Value provides this).

 

If an organization stores mobile phone numbers under Google's standard type="mobile" rather than type="work_mobile", the default base attribute phonesWorkMobileValue remains null because the Google Workspace App User profile in Okta Profile Editor lacks the phonesMobileValue attribute.

Solution

What populates the mobile phone attribute?

Add the Phones Mobile Value (phonesMobileValue) attribute to the Google Workspace App User profile in Okta and update the profile mappings.

 

The Profile Editor Requires the Phones Mobile Value Attribute

Add the Phones Mobile Value attribute in the Profile Editor.

  1. In the Okta Admin Console, navigate to Directory and select Profile Editor.
  2. Locate the Google Workspace application and select Profile (or select the Google Workspace User profile name).
  3. Select + Add Attribute to open the Pick Schema Attributes window.
  4. In the search bar, enter mobile.
  5. Select the checkbox next to Phones Mobile Value (variable name: phonesMobileValue, data type: string).
  6. Select Save.

 

The Google Workspace Profile Mappings Require an Update

Update the Google Workspace profile mappings.

  1. In Directory and Profile Editor, select Mappings for the Google Workspace application.
  2. Select the Google Workspace to Okta User tab.
  3. Locate the target Okta attribute mobilePhone.
  4. Change the source mapping expression from appuser.phonesWorkMobileValue to appuser.phonesMobileValue.
    • NOTE: If the Google Workspace directory contains a mix of type="mobile" and type="work_mobile" phone numbers, use a conditional expression so either value imports:
      appuser.phonesMobileValue != null ? appuser.phonesMobileValue : appuser.phonesWorkMobileValue
 
  1. Set the mapping to Apply mapping on user create and update.
  2. (Optional) Select the Okta User to Google Workspace tab if Provisioning from Okta to Google Workspace is active.
  3. Locate Mobile phone (phonesWorkMobileValue) and set the dropdown to Do not map (unless Okta must write to Google's work_mobile field).
  4. Locate Phones Mobile Value (phonesMobileValue), map user.mobilePhone to it, and set it to Apply mapping on user create and update.
  5. Select Save Mappings and select Apply updates now (or Don't apply updates if only importing from Google Workspace prior to running a Full Import).

 

A Manual Full Import Backfills Existing Users

Run a manual full import to backfill existing users.

  1. Make a minor update to a single user in the Google Admin Console and run an incremental import to verify phonesMobileValue and mobilePhone populate in Okta.
  2. Navigate to Applications, select Applications, select Google Workspace, and select Import.
  3. Select Import Now, select Full import, and select Import during a low-traffic or maintenance window to backfill all existing unchanged users across the organization.

Recommended content

No recommended content found...