# When can  email\_verified  be removed or reset on a user created through an enterprise SAML connection with Organizations?

**URL:** <https://community.auth0.com/t/when-can-email-verified-be-removed-or-reset-on-a-user-created-through-an-enterprise-saml-connection-with-organizations/205076>\
**Category:** Get Help\
**Tags:** idp, user-management, samlp, login-experience, auth0\
**Created:** [November 5, 2026, 9:26am UTC](https://community.auth0.com/t/when-can-email-verified-be-removed-or-reset-on-a-user-created-through-an-enterprise-saml-connection-with-organizations/205076 "2026-11-05T09:26:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vignesh.ramalingam](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vignesh.ramalingam/32/71784_2.png) [@vignesh.ramalingam](https://community.auth0.com/u/vignesh.ramalingam)\
**Post date:** [November 5, 2026, 9:26am UTC](https://community.auth0.com/t/when-can-email-verified-be-removed-or-reset-on-a-user-created-through-an-enterprise-saml-connection-with-organizations/205076/1 "2026-11-05T09:26:08Z")

</div>

Context:

I user the invitation flow to onboard the user. but only SSO connections have the auto-membership enabled and likely blocked when postlogin deny access based on the email\_verified key.  
• Users sign in through enterprise SAML connections (Okta as the IdP). Users arrive via an Organization invitation: invitation email → Auth0 page → Continue → SAML login at the IdP → back to Auth0 → application.  
• We have a post-login Action that denies access unless event.user.email\_verified === true .  
• No code of ours sets email\_verified for SSO users. Our backend only PATCHes user\_metadata , and the only deletions are of organization membership.

What we see  
An SSO user logs in successfully, so email\_verified was true at that point. Later(not suddenly) but after some days in future the user (not all saml connection user) is not having that email\_verified key or even the raw json is seen completly different, and the Action denies the login.

Questions

1. What is the full lifecycle of email\_verified for a user created through an enterprise SAML connection? Who sets it to true on creation, or on invitation acceptance?
2. Is email\_verified re-evaluated from the IdP on every login for SAML connections? Does an assertion with no email\_verified attribute reset it?
3. Can email\_verified disappear from the user’s raw JSON, as opposed to being set to false ? If so, in which cases?
4. Does “Sync user profile attributes at each login” ( set\_user\_root\_attributes ) affect email\_verified , or only name, nickname, given\_name, family\_name and picture?
5. Which events reset it besides an email change through the Management API?
6. Does deleting and re-creating the user (just-in-time provisioning at the first SSO login) produce a user without email\_verified ? Is there a supported way to mark SAML users as verified?

What we’ve verified: the tenant logs show no delete ( du ) of the user (fill in after checking), and the Management API calls we make touch only user\_metadata and org membership.

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [November 5, 2026, 10:49am UTC](https://community.auth0.com/t/when-can-email-verified-be-removed-or-reset-on-a-user-created-through-an-enterprise-saml-connection-with-organizations/205076/3 "2026-11-05T10:49:29Z")

</div>

Hi @vignesh.ramalingam

Welcome back to the Auth0 Community!

You are asking how the email\_verified value is set and maintained for users who sign in through an enterprise SAML connection with Okta as the identity provider, and why the value disappears or changes for some SSO users after several days, causing your Post-Login Action to deny access.

**Summary:** For enterprise connection users, `email_verified` is governed by the identity provider’s profile data and by the Auth0 user record, not by the Organization invitation step, so the Post-Login Action should check the connection type and the user’s identity record before it relies on that value.

**Root Cause:** A Post-Login Action that requires `email_verified === true` for every user treats the claim as a reliable signal for all connection types. For enterprise connections, the value comes from the identity provider’s profile and can be absent or replaced when the profile is synchronized on login. A user record that is recreated, linked, or updated with a different connection can also show a different raw JSON structure. The Post-Login Action then sees a missing or false value and denies access.

Now to answer your questions in order:

> What is the full lifecycle of email\_verified for a user created through an enterprise SAML connection? Who sets it to true on creation, or on invitation acceptance?

- **Creation via SAML JIT (First Login / Invitation Acceptance):**  
When a user accepts an Organization invitation and completes authentication at Okta, Auth0 provisions the user record Just-In-Time (JIT) under the SAML connection (`saml-p|{connection-name}|{user-id}`).

- **Who sets it?**

> Is email\_verified re-evaluated from the IdP on every login for SAML connections? Does an assertion with no email\_verified attribute reset it?

- **Yes, it is re-evaluated if upstream attribute sync is active.**

- **What happens if the SAML assertion omits** `email_verified`?

> Can email\_verified disappear from the user’s raw JSON, as opposed to being set to false ? If so, in which cases?

**Yes.** `email_verified` can be completely absent (undefined) from the user JSON in two primary scenarios:

1. **User Identity Linking or Secondary Identity Resolution:**

2. **Profile Re-provisioning / User ID Switching (The “Completely Different Raw JSON” clue):**

> Does “Sync user profile attributes at each login” ( set\_user\_root\_attributes ) affect email\_verified , or only name, nickname, given\_name, family\_name and picture?

- In enterprise connections (SAML / WS-Fed), connection-level synchronization options control how upstream attributes update root attributes.

- `set_user_root_attributes` strictly synchronizes root profile attributes (`name`, `given_name`, `family_name`, `nickname`, `picture`).

- **However** , under the hood, SAML mappings mapped via the connection’s `mappings` dictionary (or default SAML attribute parsers) synchronize attributes on every login. If an assertion supplies an `email` or `email_verified` attribute, Auth0 updates the root `email_verified` to reflect the latest incoming token if upstream synchronization applies.

> Which events reset it besides an email change through the Management API?

1. **SCIM Synchronization (Okta SCIM):**

2. **Direct Management API updates:**

3. **IdP Assertion Changes:**

> Does deleting and re-creating the user (just-in-time provisioning at the first SSO login) produce a user without email\_verified ? Is there a supported way to mark SAML users as verified?

- **Re-creation:** If a user is deleted and re-created via pure SAML JIT with no explicit SAML attribute for `email_verified`, the outcome depends on whether the IdP domain matches the connection’s domain whitelist / configuration. If it doesn’t match or the mapping omits it, it can be created without `email_verified`.

**[Recommended and Supported Solutions]**

1. **In your Post-Login Action (Best Practice for Enterprise/SAML):**  
Enterprise users authenticated via corporate SAML / SSO connections (Okta) are inherently verified by their enterprise identity provider. Requiring `event.user.email_verified === true` without checking connection strategy is a common pitfall because SAML assertions frequently do not emit an `email_verified` claim.

```auto
exports.onExecutePostLogin = async (event, api) => {
  const isEnterprise = event.connection.strategy.startsWith('saml') || 
                       event.connection.strategy === 'enterprise' ||
                       event.connection.strategy === 'waad' ||
                       event.connection.strategy === 'okta';

  const isEmailVerified = event.user.email_verified === true || isEnterprise;

  if (!isEmailVerified) {
    api.access.deny('Please verify your email address before signing in.');
  }
};

```

1. **Explicitly Map** `email_verified` in Okta SAML & Auth0 Connection:

```auto
     {
       "mappings": {
         "email_verified": "email_verified"
       }
     }

```

1. **Auto-verify via Post-Login Action or Management API:**  
If you must have the root database field set to `true`, you can set it in a Post-Login Action using the Management API client if `event.connection.strategy === 'samlp'` and `!event.user.email_verified`:

```auto
const ManagementClient = require('auth0').ManagementClient;
// PATCH /api/v2/users/{id} with { email_verified: true }

```

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 15, 2026, 10:49am UTC](https://community.auth0.com/t/when-can-email-verified-be-removed-or-reset-on-a-user-created-through-an-enterprise-saml-connection-with-organizations/205076/4 "2026-11-15T10:49:36Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
