Bitbucket server api commit failing with error Bitbucket: 'pbord3' != Commit: 'Ghorpade, Sumit'

Hi,

I am using below API to commit file to a branch using API.

PUT /api/latest/projects/{projectKey}/repos/{repositorySlug}/browse/{path}

I am facing below error -

Bitbucket: ‘pbord3’ != Commit: ‘Ghorpade, Sumit’

Committer name in your git user.name is not matching with bitbucket user slug. Please make sure you have mentioned correct network id under your git user.name

My .gitconfig file in local has user name as - ‘pbord3’ , and it matches with bitbucket user slug which is also ‘pbord3’.

on file commits , my name is shown as ‘Ghorpade, Sumit’

I am not sure what to change and where to look at? kind of stuck at this place. Any support here would be really helpful

This does not sound like something that Bitbucket checks. Bitbucket has the “Verify Committer” hook, which checks the email or display name of the user. However, the error message you have shown does not come from Bitbucket itself. Do you perhaps have a 3rd party plugin installed that performs additional checks?