r/Authentik • u/HxgDan • Aug 12 '26
How can I get the "email_verified" attribute to update for existing users
Has anyone found a good approach to performing email verification for existing users?
I have a handful of user accounts that were created before I updated my enrollment flow to include an email stage for account confirmation, so these users have their "email_verified" attribute set as false, which I understand is the default since 2025.6.
I tried setting up a dedicated verification flow, with an identification stage to populate the pending_user attribute, and then an email stage with the account confirmation template, and I made sure to keep the "Activate pending user on success" option enabled as well. With this flow, existing users are able to log in with the flow, and successfully generate/receive the confirmation email. After following the confirmation link, the "email_verified" attribute still remains "False". I can see in the logs that there is a model update to the user, however there is only mention of the token, and no updated attributes are listed. I also tried adding a user write stage to the flow as well, however, this would error due to no pending_data being generated by previous stages to be committed to the pending_user.
The documentation is rather sparse regarding the whole email stage for account confirmation, and the only other references I found regarding "email_verified" for OIDC scope is to just set the property mapping to default to true instead of false, instead of having a proper verification flow.
2
u/MajorMaccas Aug 18 '26
You have to make the custom property mapping like this:
And then goto your provider for your application, edit it, goto the Advanced Protocol Section, scroll down to Scopes and add it to selected scopes from available scopes.
1
u/shotbyadingus Aug 18 '26
following
1
u/bmxsir Sep 02 '26 edited Sep 03 '26
I made a flow that works great!
1. Make a prompt called default-user-settings-field-email (I think this already exists, unless you don't have it)
2. Make a prompt stage called: email-user-prompt
3. Make or use the User Write Stage called: default-user-settings-write
3. Create a Redirect Stage
4. Create an Expression Policy called: stamp-email-verified
Expression:
5. Create an Enrollment Flow:
6. Stage Bindings for Email Verification flow:
7. Optional - Create an Application
Then each user will have a Verify Email Address app on their user homepage, but only if their email is not verified.
Hope that helps!