Loading

Send Email Verification To Experience Cloud User, Partners and Customers

Date de publication: May 5, 2026
Description

To enhance account security, verification is required when an Experience Cloud user changes their own email address. It is important to note that this requirement applies only to user-initiated email changes. When an admin changes a community user's email address (via UI, REST API, Apex, Flow, or Data Loader), no verification email is sent automatically — the change takes effect immediately and the HasUserVerifiedEmail flag is silently set to false.

Critical Impact: When HasUserVerifiedEmail is false, the Experience Cloud user will immediately lose the ability to log in via passwordless login (OTP via email) until their email is verified. Admins performing bulk email updates (e.g. via Data Loader or API) may unknowingly lock out large numbers of users without realising it.

Résolution
Step 1 — Check if the User's email is already verified

Run the following SOQL query to check the verification status:
SELECT Id, Username, FirstName, LastName, Email, HasUserVerifiedEmail 
FROM User 
WHERE Id = '(USER ID)'
 
If HasUserVerifiedEmail is true, the user's email is already verified and no further action is needed.
 
Step 2 — Confirm email templates are set up

Navigate to: Setup → All Sites → Workspaces → Administration → Emails

Ensure the following templates are configured:
  • Old Email Address Change Verification
  • New Email Address Change Verification

These templates are required for verification emails to be sent correctly.

Step 3 — Trigger the verification email

Depending on who initiated the email change, follow the appropriate path below:

If the user changed their own email via their Experience Cloud profile page:

  • Salesforce automatically sends a verification email to the new address.
  • The user must click the verification link in the email to confirm the change.
  • Once verified, the new email address becomes active on their profile.

If an admin changed the user's email (via UI, REST API, Apex, Flow, or Data Loader):
  • No verification email is sent automatically.
  • The admin must trigger the verification email using the Apex method asyncEmailConfirmation.
  • Please follow the steps here: Verify Email Addresses with Async Email
Numéro d’article de la base de connaissances

005103627

 
Chargement
Salesforce Help | Article