This repository was archived by the owner on Oct 27, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
[Bug]: Login V2 Microsoft/Entra Identity Provider failed validation #578
Copy link
Copy link
Closed
zitadel/zitadel
#10507Labels
Description
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
- Add the
Microsoftprovider (Entra OIDC) to the list of available Identity Providers. - Go to the V2 login page and select the Microsoft provider for authentication.
- Follow the authentication flow, make sure that the account used does not exist.
- After redirecting to the login page, the error is shown.
Screenshots
Expected behavior
Account is created and user logged in.
Relevant Configuration
Additional Context
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
✅ Done