How to remove stash user id


In the user directory of stash, I have 2 Id's of mine, cause of which I am not able to login, it gives me an error, org.hibernate.NonUniqueResultException: query did not return a unique result: 2, Is there any way to remove one of my user id from stash, I am not a admin, But I can send the answers to my admin.Thanks for your help in advance!

1 answer

Hi Nitram,

Yikes! That is definitely not expected behaviour. You may end up having to remove the duplicated ID directly from the database, but it's important for us to understand how you got into this situation in the first place. Could you raise an issue at https://support.atlassian.comso we can take a closer look at your instance and help you resolve the problem?



Sure, this is my email ID in my org, and my username is like mraj1,

In JIRA, it is connecting to my windows user directory, I think so, where my username = mraj1 key= martinjerome.raj

and In stash, I can see a record with username = mraj1  email =, pulling from Windows UD.

and the second record is created by some guy who has admin rights, username= martinjerome.raj email = empty or null.

So, when I try to login with mraj1, it gives me the above error, when I login with martinjerome.raj I can see an error no username exists, Please help!


This is created by a admin related to my issue in stash support, SSP-5382

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

175 views 20 8
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you