server icon indicating copy to clipboard operation
server copied to clipboard

Missing setting to send welcome mail when creating a user

Open JB1985 opened this issue 8 years ago • 35 comments

I am missing the setting to disable/enable to send a welcome mail when creating a user.

Currently, an email is always sent, whether you want it or not.

In Nextcloud 13:

unbenannt

In Nextcloud 14:

unbenannt1

Please bring back the setting that the admin can disable/enable the welcome mail.

Server configuration

Operating system: Debian 9

Web server: Apache2.4

Database: MariaDB

PHP version: PHP7.0

Nextcloud version: 14.0.0

Updated from an older Nextcloud/ownCloud or fresh install: Updated from 13.0.6 and fresh install.

Where did you install Nextcloud from:

JB1985 avatar Sep 11 '18 12:09 JB1985

GitMate.io thinks possibly related issues are https://github.com/nextcloud/server/issues/8377 (Missing email field when admin create/add new user), https://github.com/nextcloud/server/issues/1011 (Error while re-creating a user), https://github.com/nextcloud/server/issues/3346 (Left shadow in app-navigation missing from user settings), https://github.com/nextcloud/server/issues/10916 (Unable to set quota when adding a new user), and https://github.com/nextcloud/server/issues/4654 (Missing expected parameters in change user hook when setting avatar).

nextcloud-bot avatar Sep 11 '18 13:09 nextcloud-bot

@nickvergessen can you please add this setting again?

JB1985 avatar Sep 13 '18 09:09 JB1985

@skjnldsv was there a discussion about this, or just an accident like the "Add group" thingy?

nickvergessen avatar Sep 13 '18 09:09 nickvergessen

@nickvergessen Nope, I remember a discussion about this. Can't find it though! IIrc it was that it wasn't really that much used and it's better to just send a mail for everyone anyway.

skjnldsv avatar Sep 13 '18 09:09 skjnldsv

https://github.com/nextcloud/server/pull/8856 https://github.com/nextcloud/server/pull/8864 https://github.com/nextcloud/server/pull/8824

skjnldsv avatar Sep 13 '18 09:09 skjnldsv

IIrc it was that it wasn't really that much used and it's better to just send a mail for everyone anyway.

That is a very bad consideration! Why do not you want the users to decide whether to send an email or not? There are enough providers who send the welcome mail via another tool.

Please add this setting again.

JB1985 avatar Sep 13 '18 10:09 JB1985

@nickvergessen

Is it still possible that the email settings comes back in NC14? In the RC1 is not there.

JB1985 avatar Sep 20 '18 12:09 JB1985

No, it will be part of 14.0.2, if someone does it

nickvergessen avatar Sep 20 '18 12:09 nickvergessen

Still not fixed in 14.0.2 RC1

JB1985 avatar Oct 05 '18 05:10 JB1985

@nickvergessen no it will not as this is the default behaviour that people wanted when the discussion was on iirc.

skjnldsv avatar Oct 05 '18 05:10 skjnldsv

Why removing a feature like this anyway? If one wants an email, it can be enabled in the setting - so where was the problem just leaving the feature as it was in NC13?

arnowelzel avatar Oct 12 '18 06:10 arnowelzel

Is there any news as to whether the problem is resolved? Or will this no more fixed in this version?

Please let us know.

JB1985 avatar Nov 01 '18 11:11 JB1985

Please confirm my assumption:

The e-mail will only be sent, if there is no password for the user - otherwise no e-mail will be sent, right?

In this case indeed the option makes no sense. Why should anyone create a new user without setting a password and does not want to get the user told the automatically created password via e-mail? If you want to avoid e-mails getting sent, just enter a password for new users when creating them, right?

arnowelzel avatar Nov 01 '18 21:11 arnowelzel

Please confirm my assumption:

The e-mail will only be sent, if there is no password for the user - otherwise no e-mail will be sent, right?

In this case indeed the option makes no sense. Why should anyone create a new user without setting a password and does not want to get the user told the automatically created password via e-mail? If you want to avoid e-mails getting sent, just enter a password for new users when creating them, right?

Here is a scenario: As an administrator you would like to prepare all users in the Nextcloud administration before a specific event, launch or rollout date. It would be very elegant if you don't have to create a password for every user and you could send the welcome mail at a later date or time so all users could set their passwords independently.

jonasv1 avatar Nov 15 '18 16:11 jonasv1

@jonasgarstick In fact is not possible to manually create users without password when the option "send e-mail to new user" is turned off in NC 13. But in this case, you also can not add an e-mail address, only username and password:

image

In fact you have to add the e-mail address later in the user details.

arnowelzel avatar Dec 05 '18 10:12 arnowelzel

I'm in the same situation as @jonasgarstick describes: I'm currently setting up a new server for a professional association and I need to prepare the users now, while the nextcloud instance is not even publically available. Still, whenever I add a user, nextcloudl will send this annoying welcome mail to (future!) users who do not even know me and who have NOT agreed to receive such mails from me.

A similar situation happened to me on my day job, where we license a set of parameters from PIA Kaiserslautern and they simply set up a Nextcloud account and shared the data. However, the welcome mail seemed VERY UNPROFESSIONAL to me. Providing access via NextCloud is fine, but there were two main issues in a professional surrounding:

  • The language of the welcome mail does not give users who did not create the account themslf any clue what Nextcloud is and why an account was added at all. Even worse, the default is to call users with the informal "Du" in Geman, which is a big No-No in a professional setting.
  • Access to the nextcloud site was not directly possible anyway (another layer of http basic auth), so clicking on the "Go to nextcloud" link didn't even work. They had to send me another mail with the http credentials to reach the login page in the first place, where they also included the NextCloud login.

Altogether, to me this was a very unprofessional episode of a Nextcloud encounter in my office job and it is mainly due to NextCloud sending those invitations automatically. In my situation all it did was to confuse me and shed a bad light on the other company.

So, please make it possible again to suppress those welcome messages. There are several scenarios where you do not want these messages sent by NextCloud, either because you don't want to inform your users yet, or because you need to contact them via other means anyway with additional information.

kainhofer avatar Jan 05 '19 00:01 kainhofer

@kainhofer An email is only sent, when you don't add a password - otherwise the users would not be able to login. So a workaround is to add a password as well when creating the users. You have to tell the users the password anyway.

Edit: I stand corrected. Indeed the e-mail is sent even if you set the password manually. In this case I also vote for bringing this feature back.

arnowelzel avatar Jan 05 '19 11:01 arnowelzel

I want it still back too.

JB1985 avatar Jan 06 '19 16:01 JB1985

I want it back too ! And the ability to edit the text that will be sent inside nextcloud would be very nice too !

If you don't want mails to be sent, you can enter a wrong password in the mail server parameters. This way, you can create users and groups, then reactivate the mail server with the right password.

Not pretty, but works...

Tom31100 avatar Feb 26 '19 12:02 Tom31100

In our case, it would be very important to be able to disable the welcome message, as it brings an unwanted information disclosure to the users. We have an external user and group management and create and synchronise users with the API automatically. They can then log in with the social login app and our OAuth sever.

The Problem here:

  1. the users should not receive a welcome mail at all; we have our own means to inform them about their access to the Nextcloud
  2. The users will be created before they even know that they have been accepted. After their application for the participation in an event, they will be created in the participant's database some days before we send out the notification by postal mail to them that they have been accepted. They should not be notified before that. Due to the user synchronization among our systems, including nextcloud, it is very problematic that Nextcloud sends automatic welcome messages. It would not be a problem if we could simply disable the welcome message.

Right now, I had to enter invalid Email credentials into the nextcloud settings to prevent it from sending mails. That is unfortunate and not elegant, because it disables all mail notifications.

I do not really understand what the problem of this setting is, anyway. If a majority is not using it, or if this would be a bad default, this still does not make it a useless setting as long as a sensible default value is chosen. I would be fine, even prefer, with this setting being exposed in the config.php and not the user interface.

noresistence avatar May 27 '19 15:05 noresistence