Skip to content

No "Welcome" email sent when using occ. #25319

@hickscorp

Description

@hickscorp

Using the latest version of NextCloud, we discovered a problem that might be a bug.
We're using a CSV file to import our users into the system, via a small bash script that we created.

#!/bin/bash
USERS_CSV="$HOME/nextcloud-users.csv"
OCC="$HOME/public_html/occ"
OLDIFS=$IFS
IFS=","
while read username password displayName email group
 do
    export OC_PASS=$password
    echo "Adding user ${username} (${displayName} | ${password} | ${group})..."
    $OCC user:add --password-from-env --display-name "$displayName" --group "$group" "$username"
    echo "Setting ${username}'s email to ${email}..."
    $OCC user:setting "$username" settings email "$email"
done < $USERS_CSV
 IFS=$OLDIFS

This works great, and all users from the CSV file are added. However, none of them receive the "Welcome" email inviting them to set / reset their password.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions