Troubleshoot missing name error with Entra ID OIDC SSO
If your organization uses OpenID Connect (OIDC) single sign-on (SSO) with Microsoft Entra ID, a user sees the following error the first time they log in to Opti ID:
AuthorizationError: Unable to create the user. The following required properties are missing: "firstName","lastName".
This error affects only users who log in to Opti ID for the first time. Users who already have an Opti ID account can continue to log in.
Cause
Opti ID creates a user account the first time someone logs in with SSO. To create the account, Opti ID needs the user's first and last name.
Opti ID reads these names from the ID token, which is the sign-in data that Entra ID sends to Opti ID. The ID token contains claims, which are pieces of information about the user. The first name is in the given_name claim, and the last name is in the family_name claim.
Important
Entra ID does not include given_name and family_name in ID tokens by default. They are optional claims that you must add to the app registration for Opti ID.
If these claims are missing, Opti ID cannot create the user.
Resolution
Add the optional claims to your app registration in Entra ID. You need permission to edit app registrations in Entra ID. You do not need to change anything in Opti ID.
- In the Microsoft Entra ID portal, go to Home > App registrations.
- Click View all applications in the directory.
- Search for and select the application you created for Opti ID SSO.
- Go to Manage > Token configuration > Add optional claim and complete the following:
- Token type – Select ID.
- Claims – Select email, family_name, and given_name.

- Click Add. A verification message displays, stating that you must configure OIDC scopes for the selected claims.
- Select the Turn on the Microsoft Graph email, profile permission (required for claims to appear in token) checkbox and click Add.

Note
If your claims display a warning icon after you add them, you did not select the checkbox in this step. You must select the checkbox for the claims to work.

- Ask the affected user to log in to Opti ID again. Opti ID creates their account when they log in.
If the error continues, contact Optimizely Support with your Opti ID organization name, the email address of the affected user, and a screenshot of the error.
For the full setup steps, see Configure OIDC SSO with Entra ID.