Hi @tanmaykaushik451 and welcome to the Mattermost forums!
If you’re using Gitlab as a login provider, you will have to change the username in Gitlab. The username
cannot be changed in Mattermost if the authentication source is external because otherwise Mattermost would lose the mapping to the authentication provider for this specific user.
Also can you please explain what wordpress has to do with that?