---
title: Troubleshoot missing name error with Entra ID OIDC SSO
slug: opti-id/docs/troubleshoot-missing-name-error-with-entra-id-oidc-sso
createdAt: 2026-11-30T18:15:41.172Z
---

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.

:::hint{type="warning"}
**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.&#x20;

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.

1. In the Microsoft Entra ID portal, go to **Home > App registrations**.
2. Click **View all applications in the directory**.
3. Search for and select the application you created for Opti ID SSO.
4. Go to **Manage > Token configuration > Add optional claim** and complete the following:

   - **Token type** – Select **ID**.
   - **Claims** – Select **email**, **family\_name**, and **given\_name**.

   ![Screenshot of the Add optional claim panel where the ID token type and the email, family_name, and given_name claims are selected](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/Clmp8VXgUetcuLz7_1ZRA-20260720-150001.png)
5. Click **Add**. A verification message displays, stating that you must configure OIDC scopes for the selected claims.
6. Select the **Turn on the Microsoft Graph email, profile permission (required for claims to appear in token)** checkbox and click **Add**.

   ![Screenshot of the verification message where the Microsoft Graph email, profile permission checkbox is selected](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/NhSXM4tb1KBN2TpgtWMji-20260720-150001.png)

   :::hint{type="info"}
   **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.

   ![Screenshot of the optional claims list where a warning icon displays next to each claim](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/0CACk1SyHmkxZAhmM8c-1-20260720-150001.png)
   :::
7. 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](https://docs.optimizely.com/opti-id/docs/configure-oidc-sso-with-entra-id).
