<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
Character Restriction on Okta/Application Attributes
Lifecycle Management
Okta Classic Engine
Okta Identity Engine
Overview

When attempting to create new attributes through either the Okta API or Application, the following error message may appear:

Api validation failed: Invalid property name: <Attribute-Name>. Property names should only contain alphanumeric characters and underscores and must not start with a digit.

 

Error Message 



This indicates that the attribute name does not comply with the established naming conventions, which require the use of only alphanumeric characters and underscores and prohibit the use of a digit as the first character.

Applies To
  • Okta custom attributes
  • Application Custom Attributes
  • Universal Directory
Cause

The thrown error indicates that the attribute name is not compliant with the established naming conventions, which require the use of only alphanumeric characters and underscores and prohibit the use of a digit as the first character. 

error message

Solution
According to the error message, only alphanumeric characters and underscores ( _ ) are permitted when creating attributes. Additionally, attribute creation prohibits the usage of a numeric character as the first character in the username. Any attempt to create an attribute with characters that do not meet these requirements, whether through the Okta API or the Admin Dashboard, will result in the above-specified error.
Loading
Character Restriction on Okta/Application Attributes