Skip to content

[Bug]: Primary email cannot be changed/set #51625

@AndyScherzinger

Description

@AndyScherzinger

⚠️ This issue respects the following points: ⚠️

Bug description

Create i.e. an admin user via CLI or go to a user's profile and try to change the primary email address, this is not possible

Steps to reproduce

  1. Have an (admin) user without an email (occ user:add USERNAME –g admin) or one where you want to change the mail address
  2. Login via WebUI
    3.Go to user profile
  3. Try setting/changing the primary mail address

Expected behavior

Being able to set/change the primary email address.

To be clarified on there is a design decision behind this not being possible or if it is a bug, see
nextcloud/server/blob/1d0a65db9304f074f69cacaddbe529cf3c054ffa/apps/settings/src/components/PersonalInfo/EmailSection/EmailSection.vue#L16-L28

While this can be traced back to Nextcloud 13:
It was like this in the original profile implementation and was ported to Vue later.

So its like this forever and might be because there was only a "can change displayname" method on the User class so displayname and email are scoped in the same permission

Introduced here: 039ee7e

Nextcloud Server version

29

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

☑️ Done

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions