I would like to control email notifications to Liferay strangers.
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
legacy-article
learn-legacy-article-disclaimer-text
Issue
- How are strangers defined by Liferay?
- How can I control email notifications to strangers upon signup?
Resolution
-
The SAML property defining unknown users as strangers was introduced in DXP 7.3. (1)
- This property defines if users that do not exist already in the portal database should be classified as strangers.
- Once classified, the portal instance’s existing stranger handling policy determines if the user should be automatically provisioned using information available from the Identify Provider (IdP)’s SAML assertion.
-
There are two important settings for controlling email notifications to Liferay stranger upon registration:
-
Setting 1: Instance Settings > User Authentication > Require strangers to verify their email address? (2)
Or alternatively, adding to portal-ext.properties the following property:
company.security.strangers.verify=false
-
Setting 2: Instance Settings > Email > Account Created Notification > Enabled
- Enabling Setting 1 only sends new stranger accounts a password verification email, while Enabling Setting 2 only sends a Welcome message.
- If the desired goal is to have NO emails sent to newly created accounts for unknown users (strangers), please disable both Setting 1 and Setting 2.
- Note: Please note that an Admin account creating an account for a new user is different behavior from an unknown user (stranger) creating a new account.
did-this-article-resolve-your-issue