I would like to control email notifications to Liferay strangers.

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:
    1. Setting 1: Instance Settings > User AuthenticationRequire strangers to verify their email address? (2)
      Or alternatively, adding to portal-ext.properties the following property:
      company.security.strangers.verify=false
    2. 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. 

Additional Information

 

 

Was this article helpful?
0 out of 0 found this helpful