<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
System Status
Announcements
Announcements
Search
Search
Select Language

Okta Concatenated Attributes Display as Null After CSV Directory Import

Okta Classic Engine
Okta Identity Engine
Lifecycle Management

Overview

When an administrator imports a user through a Comma-Separated Values (CSV) Directory Integration, an attribute that concatenates multiple attributes in a profile mapping displays the literal text null (for example, null null). This occurs because the imported CSV omits the columns for the attributes used in the concatenation, causing Okta to evaluate the missing values as the string null for newly created CSV directory users. Resolve this by including all attribute columns in the CSV, ensuring users already exist in the CSV directory, or using a conditional expression in the profile mapping.

Applies To

  • Okta Identity Engine (OIE)
  • Okta Classic Engine
  • Comma-Separated Values (CSV) Directory Integration
  • Profile Mappings

Cause

In a CSV Directory Integration, Okta does not update an optional attribute if the CSV file lacks a header for it. When Okta creates a new application user in the CSV directory, the attributes omitted from the CSV have no value. If a profile mapping concatenates those attributes, Okta evaluates the missing values as the string null. This results in a concatenated value such as null null. This behavior occurs when the CSV contains only some attribute columns, Okta creates the target user as a new CSV directory user, and a profile mapping uses an omitted attribute in a concatenation expression.

Solution

What resolves the null attribute issue?

Prevent the literal string null from appearing in concatenated attributes by applying one of the following methods:

  • Include all attribute columns with current values in the CSV file for imports that may include new users. This includes every attribute used in concatenation mappings.
  • Confirm that the target users already exist in the CSV directory before importing a CSV file that contains only the required attributes and a minimal set of other attributes.
  • Use a conditional expression in the profile mapping to check whether an attribute is null or blank.

NOTE: Administrators must include the unique identifier and every required attribute in the Profile Editor in every import. If a CSV file omits these for a user, Okta deactivates the existing user and fails the import for a new user. Okta treats users missing from the latest import as inactive and deactivates them.

 

The Following Steps Reproduce this Behavior

Reproduce the concatenation issue by creating a user, configuring a profile mapping, and running a minimal CSV import.

  1. Create a user in Okta who does not exist in the CSV directory.
  2. Map a concatenation of several attributes to the Display name in the CSV directory application profile mapping.
    • appuser.attributeA + " " + appuser.attributeB + " " + appuser.attributeC
  3. Prepare a CSV file that contains the unique identifier and required attributes for the user, but omit the columns for the concatenated attributes.
  4. Run the import with the prepared CSV file.
  5. Confirm that the user Display name becomes null null null.
Loading
Okta Concatenated Attributes Display as Null After CSV Directory Import | Okta Support