Skip to content
This repository was archived by the owner on Oct 27, 2025. It is now read-only.

[Bug]: Login V2 Microsoft/Entra Identity Provider failed validation #578

@mark-hofmeijer

Description

@mark-hofmeijer

Preflight Checklist

  • I could not find a solution in the documentation, the existing issues or discussions
  • I have joined the ZITADEL chat

Version

4.0.1

Describe the problem caused by this bug

I followed the official guide to configure Entra ID as Identity Provider. I have enabled the "Automatic creation" of an account if it does not exists.

Once authenticated with Entra ID, the user is redirected to the V2 login page (/ui/v2/login/idp/azure/success?id=***&requestId=oidc_V2_***&token=***), however ZITADEL fails to create the account.

[invalid_argument] invalid AddHumanUserRequest.Profile: embedded message failed validation | caused by: invalid SetHumanProfile.GivenName: value length must be between 1 and 200 runes, inclusive

After requesting an ID token manually via Entra ID and inspecting the JWT token, I can confirm that the GivenName is present in the Entra token.

To reproduce

  1. Add the Microsoft provider (Entra OIDC) to the list of available Identity Providers.
  2. Go to the V2 login page and select the Microsoft provider for authentication.
  3. Follow the authentication flow, make sure that the account used does not exist.
  4. After redirecting to the login page, the error is shown.

Screenshots

Image

Expected behavior

Account is created and user logged in.

Relevant Configuration

Image Image Image

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingloginLogin Applicationv4

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions