Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was 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

Description

@florianjacob

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

Activity

  1. added
    z-bug(Deprecated Label)
    z-p2(Deprecated Label)
    on Apr 2, 2020
  2. clokep commented on Apr 2, 2020

    @clokep
    Member

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    z-bug(Deprecated Label)z-p2(Deprecated Label)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions