Skip to content

[LDAP] Send welcome mail for new users from LDAP/AD backend #63460

Description

@Chartman123

Tip

Help move this idea forward

  • Use the 👍 reaction to show support for this feature.
  • Avoid commenting unless you have relevant information to add; unnecessary comments create noise for subscribers.
  • Subscribe to receive notifications about status changes and new comments.

Is your feature request related to a problem? Please describe.
Currently, when new users are synchronized or provisioned via the LDAP/AD backend (user_ldap), Nextcloud does not trigger welcome emails. While local users created via the UI or Provisioning API can automatically receive a welcome email based on the core app configuration newUser.sendEmail, LDAP users are completely excluded from this onboarding flow.

As an administrator, there is no out-of-the-box way to inform newly synced LDAP users that their account is ready to use, forcing admins to rely on custom scripts or external mailings.

Describe the solution you'd like
Support the existing newUser.sendEmail for newly mapped LDAP users.

  1. When a new user is created from user_ldap, check if newUser.sendEmail is set to yes.
  2. Trigger a welcome email that dynamically adapts to read-only backends. If a user belongs to a backend that does not support password changes, the welcome email should omit the "Set your password" link/token and instead inform the user that they can log in using their standard LDAP/AD credentials.

Describe alternatives you've considered

  • Keep as-is, users are not directly informed.
  • Manually click "re-send welcome mail"

Additional context

  • none

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapenhancement

    Projects

    Status
    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions