<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
Error "Unable to create the user. The following required properties are missing: 'firstName','lastName'"
Single Sign-On
API Access Management
Overview

When logging into a newly created OpenID Connect (OIDC) Identity Provider (IdP), users are not able to be created within Okta.

System Log events show that the user creation failed (eventType eq "user.lifecycle.create" and outcome.result eq "FAILURE") and an error (eventType eq "user.authentication.auth_via_social") that says:

Unable to JIT user from the Identity Provider



System Log events  

Expended System Log event

Applies To
  • Generic OpenID Connect Identity Provider
Cause

This error occurs after the user logs into their external Identity Provider, but is not able to be Just-In-Time (JIT) provisioned into Okta. As Okta requires that users have a First Name and Last Name in order to be created, ensure that this Identity Provider is returning these attributes back to Okta per OpenID Connect specifications. In OpenID Connect, these specific attributes are returned in the ID Token or UserInfo in the standard claims given_name and family_name.

Solution

There are two things to check in the Identity Provider Configuration to ensure that these claims are being returned

  • Profile has been added to the Scopes section.

General Settings

  • Userinfo endpoint is configured.

Userinfo endpoint

NOTE: If any desired profile attributes are only available within the ID Token itself and are not found in the Userinfo response, omit the "Userinfo endpoint" when configuring the OIDC IdP. This tells Okta to only look at the claims found in the ID Token payload.

If still having an issue, try completing the Authorization Code flow manually to see what claims are returned in the ID Token/Userinfo response to ensure that the Identity Provider used is providing them.

 

Related References

 

Loading
Error "Unable to create the user. The following required properties are missing: 'firstName','lastName'"