# Change user's email address (SSO with Gitlab)

**URL:** <https://forum.mattermost.com/t/change-users-email-address-sso-with-gitlab/1917>\
**Category:** Troubleshooting\
**Created:** [July 20, 2016, 10:53am UTC](https://forum.mattermost.com/t/change-users-email-address-sso-with-gitlab/1917 "2016-07-20T10:53:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![au-ee](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@au-ee](https://forum.mattermost.com/u/au-ee)\
**Post date:** [July 20, 2016, 10:53am UTC](https://forum.mattermost.com/t/change-users-email-address-sso-with-gitlab/1917/1 "2016-07-20T10:53:02Z")

</div>

Hi,

we have Gitlab Mattermost running here and are very happy with it. Our users only authenticate through Gitlab.

Now, we had to change a user’s email address in Gitlab. Unfortunately the one used by Mattermost is still the old one. How can I trigger a sync or change it manually?

Thanks,

AU

---

<div class="post-metadata">

**Author:** ![jwilander](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/jwilander/32/8440_2.png) [@jwilander](https://forum.mattermost.com/u/jwilander)\
**Post date:** [July 27, 2016, 12:49pm UTC](https://forum.mattermost.com/t/change-users-email-address-sso-with-gitlab/1917/2 "2016-07-27T12:49:42Z")

</div>

Hi @au-ee,

Currently you can trigger a sync by temporarily switching the user’s account to Email/Password and then having them switch back to GitLab through Account Settings -\> Security -\> Sign-in Method. You can reset their account to Email/Password in the System Console by going to the Users list under a team that user is on, and selecting “Switch to Email/Password”.

I know this isn’t the best solution and we’re looking to ways to improve the OAuth synchronization. I’ve created a ticket [here](https://mattermost.atlassian.net/browse/PLT-3751) to cause a sync on log in to start towards addressing this issue.
