[Bug]: Primary email cannot be changed/set #51625
Labels
2. developing
Work in progress
29-feedback
bug
feature: profile
PRs or issues related to the Profile feature (e.g. Profile page, API, etc.)
needs info
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
occ user:add USERNAME –g admin
) or one where you want to change the mail address3.Go to user profile
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?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: