Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

email_notif_for_new_users is ignored when creating new users via the Admin API #7135

Closed
florianjacob opened this issue Mar 24, 2020 · 1 comment · Fixed by #7267
Closed
Labels
z-bug (Deprecated Label) z-p2 (Deprecated Label)

Comments

@florianjacob
Copy link

florianjacob commented Mar 24, 2020

Description

I created a few uses via the Synapse Admin API using the new threepids option to assign email addresses. I noticed though that the new users don't receive push notifications via the configured email address, despite having the notif_for_new_users configuration option set.

Steps to reproduce

  • run a synapse server with setting notif_for_new_users: true (the default) and a working email configuration
  • Create a new user via the “Create or modify Account” Admin API
PUT /_synapse/admin/v2/users/testuser
{
    "password": "testuser_password",
    "threepids": [
        {
            "medium": "email",
            "address": "testuser@example.org"
        }
    ]
}
  • login as testuser
  • see that the email address is present in the user settings
  • see that email notifications for the address however are disabled in the user notification settings

Relevant Code Sections in v1.12.0

Version information

  • Homeserver: self-hosted

  • Version: 1.12.0

  • Install method: package manager

  • Platform: NixOS 19.03

@clokep clokep added z-bug (Deprecated Label) z-p2 (Deprecated Label) labels Apr 2, 2020
@clokep
Copy link
Contributor

clokep commented Apr 2, 2020

Looks like this is probably an oversight. The code sections you pointed out look reasonable, any chance of putting those changes up as a PR?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
z-bug (Deprecated Label) z-p2 (Deprecated Label)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants