-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No "Welcome" email sent when using occ
.
#25319
Comments
Additionally, I'd wish that if you don't provide a password at all but an email address, the ordinary email verification flow would be triggered, just as if you had added the user via the user-administration UI in the web client. I kind of need this for a customer of mine, but I didn't find any way to get this done without a REST call to the endpoint. The endpoint then needs an authorization header, so we'd have to include the credentials somewhere in the NC-app code or store them in the DB or something, which isn't nice at all, since we're on the server side anyways... Any chance, that we get this feature? Should I open a separate issue for this? |
@desperateCoder these are good points, thanks for chipping in. I am curious - maybe is there a way to trigger the welcome email using |
@hickscorp I feel like I searched the whole internet for an answer, I did only find these two ways: The first one is a complete documentation of the The second one would work I guess, but as mentioned above I need to authorize against the endpoint. This would be maybe a solution for you? I just want to prevent having credentials stored just somewhere, that's unsafe. |
@desperateCoder thanks a lot for the pointers. Regarding authentication, I'm guessing that I could use a bearer token from any of my web sessions? |
Correctly. You're a lucky guy, since you can use a bash script with a little You could get the credentials for your script from anywhere, I bet there are good ways to solve that problem, e.g. use a credhub or something. But for me, your ticket has a very good point. Afaik there is even a similar request at the owncloud repo, but no one wants to use owncloud anyways, right? 😜 I think this is really missing and I'm glad that I'm not the only one needing this. |
@desperateCoder I feel for you... For what it's worth - we're also using a hoster, and we have access to the API. |
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions. |
Still valid. It is not working as the script sets the email address after the user creation email would be triggered. I guess having a |
Hi, please update to 24.0.9 or better 25.0.3 and report back if it fixes the issue. Thank you! My goal is to add a label like e.g. 25-feedback to this ticket of an up-to-date major Nextcloud version where the bug could be reproduced. However this is not going to work without your help. So thanks for all your effort! If you don't manage to reproduce the issue in time and the issue gets closed but you can reproduce the issue afterwards, feel free to create a new bug report with up-to-date information by following this link: https://github.com/nextcloud/server/issues/new?assignees=&labels=bug%2C0.+Needs+triage&template=BUG_REPORT.yml&title=%5BBug%5D%3A+ |
There is currently no way I could test that for now, but I bet it works like a charm. As long as my lack of support won't prevent you from releasing it, I'd test it as soon as I can. In case something is off, I'd create another issue as you mentioned. |
Still a valid issue, there has been work started in #29368 but not continued due to lack of time. |
Here you have a bash script that I've created in order to send a welcome message to a list of users stored in a CSV/Excel file (I used to create users with a batch script and communicate them a few days later after organizing the groups/circles) As you may see the key is the curl request 'curl -s -u "$admin_user:$admin_password" -X POST "$instance_url/ocs/v2.php/cloud/users/$username/welcome" --header "OCS-APIRequest: true" -o "$temp_file"' It used to work but I've just enabled 2FA for my admin user and I'm having troubles running that command.
|
💙 |
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.
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.
The text was updated successfully, but these errors were encountered: