Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Can't login to bitbucket server accout when username is an email


So we have "bitbucket server" and when we go to "edit hosting account" and select "bitbucket server", basic auth and a username that is an email address.

We get :


Authentication Failed

Failed to check login for user []: The URL "https://<our bitbucket server>/rest/api/1.0/users/" returned code "NotFound".

user does not exist.


I think it's because the url it's generating is wrong:

If I go to the browser and enter:

https://<our bitbucket server>/rest/api/1.0/users/

it works fine, but if I enter the url sourcetree tries, it fails with the same error

https://<our bitbucket server>/rest/api/1.0/users/



is this a bug (know or not), or are we configuring something wrong?




7 answers

1 vote
Mike Corsaro Atlassian Team May 17, 2018

Hello again! This issue will be fixed in the next release. For now, you might be able to work around this issue by replacing the "@" in your username with a "_"

I created a ticket there:
Looks like it will be fixed soon.

SourceTree 2.6.10
Bitbucket 5.12.0

It is not possible to use logins. "@" leads to UserNotFound, "_" leads to Unauthorized exceptions.

Fix is really needed.

With the latest Bitbucket Server, it is not possible to use ""-type logins in SourceTree. @ leads to "UserNotFound", _ leads to Unauthorized exceptions.

I am having exactly the same issue - we use Active Directory logins for our Bitbucket server and we use UserPrincipalName which is the email.  Login fails because it's interpreting the "@" symbol incorrectly when trying to connect to the server.  When I use my local Bitbucket admin login, it works fine.  Please fix this ASAP.

0 votes
Mike Corsaro Atlassian Team May 10, 2018

Hello! Could you try logging in without the "" part of your username when logging in? I think that's probably causing the issue.

Thanks for the suggestion, when I tried that I got the following error (assuming a username of "foo"):

Failed to check login for user [foo]: The URL "https://<our bitbucket server>/rest/api/1.0/users/foo" returned code "NotFound".

0 votes
bgannin Atlassian Team May 10, 2018

Hi Angus,

Thanks for the report! I'll pass it along to the Windows folks to check out for the next update.


Brian Ganninger
Product Manager, Sourcetree

Thanks @bgannin this is super annoying, and seems like an easy fix.

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events