Auth0 Bulk Imports Include Phone Number At Root Level With Connection Attributes

Overview

When processing a bulk import, Auth0 silently ignores the phone_number property at the root level of the user object if the target database connection lacks active connection attributes. Administrators resolve this by enabling at least one connection attribute on the database connection before performing the import. Previously, administrators had to store phone numbers in the user_metadata object, but Auth0 now supports root-level phone numbers when connection attributes are active.

Applies To

  • Auth0
  • Bulk Imports
  • Connection Attributes
  • User Profile Attributes

Cause

Auth0 does not persist the root-level phone_number attribute during a bulk import if the target database connection does not have connection attributes active.

 

Solution

How are root-level phone numbers included in bulk imports?

Enable connection attributes on the target database connection and format the import payload to include the phone number at the root level.

  1. Verify the database connection has active connection attributes and at least one enabled attribute.
    NOTE: The enabled attribute does not need to be a phone or SMS attribute; an email attribute is sufficient.
  2. Add the phone_number and phone_verified attributes at the root level of the user object when importing the users.

 

Format the JSON payload to include the phone attributes at the root level.

[
  {
    "email": "does_phone_import@test.com",
    "phone_verified": true,
    "phone_number": "+15555555555"  
  }

Recommended content

No recommended content found...