Hey,
Just tested with testing (there is a bug preventing SSO account creation in 1.35.7) and the preferred username is used.
You can activate SSO_DEBUG_TOKENS=true and LOG_LEVEL=info,vaultwarden::sso=debug to check if your provider is sending the correct information.
<!-- gh-comment-id:4311834647 -->
@Timshel commented on GitHub (Apr 24, 2026):
Hey,
Just tested with `testing` (there is a bug preventing SSO account creation in `1.35.7`) and the preferred username is used.
You can activate `SSO_DEBUG_TOKENS=true` and `LOG_LEVEL=info,vaultwarden::sso=debug` to check if your provider is sending the correct information.
<!-- gh-comment-id:4336891364 -->
@lollilol commented on GitHub (Apr 28, 2026):
oh i didn't know that! I added the info at the bottom of this paragraph: https://github.com/dani-garcia/vaultwarden/wiki/Enabling-SSO-support-using-OpenId-Connect#configuration
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @lollilol on GitHub (Apr 21, 2026).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/7119
Prerequisites
Vaultwarden Support String
Your environment (Generated via diagnostics page)
Config & Details (Generated via diagnostics page)
Show Config & Details
Config:
Vaultwarden Build Version
v1.35.4
Deployment method
Official Container Image
Custom deployment method
No response
Reverse Proxy
HAProxy version 2.8.16-0ubuntu0.24.04.1
Host/Server Operating System
Linux
Operating System Version
Ubuntu 24.04 LTS
Clients
Web Vault
Client Version
No response
Steps To Reproduce
Expected Result
Either use the standard OIDC claim "name" (or preferred_name) spec
Or use a variable to configure the claim that is being used for the name.
Actual Result
Right now the e-mail address is used as name.
Logs
Screenshots or Videos
No response
Additional Context
No response
@Timshel commented on GitHub (Apr 24, 2026):
Hey,
Just tested with
testing(there is a bug preventing SSO account creation in1.35.7) and the preferred username is used.You can activate
SSO_DEBUG_TOKENS=trueandLOG_LEVEL=info,vaultwarden::sso=debugto check if your provider is sending the correct information.@lollilol commented on GitHub (Apr 28, 2026):
oh i didn't know that! I added the info at the bottom of this paragraph: https://github.com/dani-garcia/vaultwarden/wiki/Enabling-SSO-support-using-OpenId-Connect#configuration