Add custom attributes to an Okta user profile
Add custom attributes to an Okta user profile to define attributes that aren't available in the base attributes.
User attribute value fields that are left empty are processed as "" or an empty string and saved as "" in the profile. User profiles with empty strings are returned when using search=(profile.<propertyName> pr) because they contain a value and are not NULL. To set the attribute as NULL, you need to use the Okta API. See Okta Developer documentation.
- In the Admin Console, go to .
- Click Okta in the Filters list.
- For Okta User (default), click Profile. If Profile is unavailable, click User (default).
- Click Add Attribute.
- Complete these fields:
- Data type: Select one of these data types:
- string: A chain of zero or more Unicode characters (which may include letters, digits, and punctuation marks)
- number: A floating-point decimal in Java's 64-bit Double format. See Platform Specification.
- boolean: Stores true, false, or null data values
- integer: Whole numbers in 64-bit Java's Long format
- string array: A sequential collection of strings
- number array: A sequential collection of numbers
- integer array: A sequential collection of integers
- country code: A code representing the country of origin for the user
- language code: A code representing the user language
- linked object: A code representing the user relationship to another attribute
- Display name: Enter a descriptive name to display for the attribute in the Admin Console
- Variable name: Enter an attribute name for the attribute that can be referenced in mappings
- Description: Enter a description of the attribute
- Data type: Select one of these data types:
- Optional. Complete the following fields:
- Enum: Select Define enumerated list of values. Supports all data types except boolean.
- Attribute members: Enter the Display names and Values. For example, you might choose to display Small for the value 1.
- Restriction: Select Value must be unique for each user to require that the attribute is unique for every user.
- Attribute length: Enter the minimum and maximum length of the Value field.
- Attribute required: Select Yes to make this attribute mandatory.
It's a best practice to make any attributes used in application usernames read-only or hidden.
- Click Save or Save and Add Another to add another custom attribute.