mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-08-24 23:22:58 -05:00
[GH-ISSUE #7206] Feature: Auto-provision new users on first SSO login (no manual admin invite required) #30134
Reference in New Issue
Block a user
Originally created by @David-Bratkov on GitHub (May 12, 2026).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/7206
Summary
New users who successfully authenticate via SSO (Keycloak OIDC) for the first time are silently rejected and kicked back to the Vaultwarden login screen with no explanation. There is no self-service onboarding path — an admin must manually invite each user from the admin panel before SSO will work for them.
Current Behavior
/admin→ Users → Invite for each new user before they can log inExpected Behavior
When a user authenticates via SSO for the first time and no Vaultwarden account exists for their email:
Option A (preferred): Automatically send an invite email to the user's address (as returned by the IdP token) and show a page: "An invitation has been sent to your email. Click the link to finish setting up your vault."
Option B: Auto-create the account immediately and prompt the user to set their vault master password in-browser before proceeding.
Either option eliminates the need for per-user manual admin action when onboarding an organization via SSO.
Why This Matters
SSO is designed for organizational onboarding — the IdP is already the authority on who is allowed in. Requiring an admin to manually invite every user before SSO works defeats the main benefit of SSO for teams. Any user who passes IdP authentication should be considered trusted and eligible for auto-provisioning.
Environment
SSO_ONLY=true,SSO_ALLOW_UNKNOWN_EMAIL_VERIFICATION=true, PKCE enabled@stefan0xC commented on GitHub (May 12, 2026):
Can you share your Support String? Because I don't have that problem on my test instance.
@BlackDex commented on GitHub (May 14, 2026):
It looks more like a feature request to me though. Ill move it to Ideas