Profile Settings --> Emails

I’m using the gitlab.com hosted site.

Under my Profile Settings → Emails, there is the following statement:

Your Primary Email will be used for avatar detection and web based operations, such as edits and merges.
Your Notification Email will be used for account notifications.
All email addresses will be used to identify your commits.

On the same page, there is an Add button.

At this point, I have two email addresses. The email address I signed up with has a green label, “Primary Email” and it does not have a Remove button. My added email address has a Remove button but no label.

How do I change my Primary Email address, and how do I select/set a Notification Email address?

Hi! GitLab provides all three customizations you mentioned:

https://gitlab.com/profile Set your primary e-mail address
https://gitlab.com/profile/emails Add/remove additional e-mail addresses
https://gitlab.com/profile/notifications Set your notification e-mail address

@axil - Thank you for clarifying where all the different settings are.

When I try to change my primary email on the main profile page I always get a “Failed to update profile” message. Any idea why or how to get it accept the change?

I’ve tried just clicking the “Save changes” button, I’ve tried pressing the enter key, and I’ve logged out and back in again and done both the “Save changes” and enter key again. All with no success.

Hmm, it seems to be a gitlab.com bug. Open an issue to https://gitlab.com/gitlab-com/support-forum/issues and the admins will respond you.

@axil - Thank you.

Bug report submitted - https://gitlab.com/gitlab-com/support-forum/issues/106

@MetaSean I had the same problem.
All because of the fact that my email address contain the character “.”
Try typing your email address without “.”

@mickeykrasilnikov - The address I’m replacing (i.e. that worked initially) had “.” to the left of the @. The address I’m trying to replace it with does NOT have any “.” to the left of the @ symbol. Both have required “.” to the right of the @ (e.g. 2 “.” to the right in metasean@forum.gitlab.com).

I’m having the same issue trying to change my primary email. Neither of my addresses have a “.” to the left of the “@”.

1 Like

Does this error still occur?

Yes, it is still occurring and the issue is still officially open - https://gitlab.com/gitlab-com/support-forum/issues/106

Same problem with " GitLab Community Edition [12.0.3]"

sudo gitlab-rails console

# Find user
user = User.find_by_email("a.toto@tutu.fr")

# Update email with dot and save
user.email = "a.toto@tii.fr"
user.save
# Failed
=> false

# Update email without dot and save
user.email = "atoto@tii.fr"
user.save
# Success
=> true

Ok…
Update failed because exist an another account in our Gitlab with the same email as secondary email…