Issue
- How are strangers defined by Liferay?
- How can I control email notifications to strangers upon signup?
Environment
- DXP 7.3+
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
- Setting 1: Instance Settings > User Authentication > Require strangers to verify their email address? (2)
- 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.
Additional Information
Subscriber Exclusive Content
A Liferay Enterprise Subscription provides access to over 1,500 articles that include best practices, troubleshooting, and other valuable solutions. Sign in for full access.
Sign In