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
4,360,047
Community Members
 
Community Events
168
Community Groups

Which permissions needed for source tree using an APP password?

Edited

I'm trying to setup my app password but my first attempt is failing.

I followed the instructions here
https://confluence.atlassian.com/bitbucket/app-passwords-828781300.html

 

I have set full permissions for Repositories and Pull Requests

Failed to check login for user [myuser]
Your credentials lack one or more required privilege scopes.
Your credentials lack one or more required privilege scopes.

Which other group does it need permissions for?

http://prntscr.com/m5y9d9

I've tried adding Projects but I get the same thing

Lastly I even tried all of these http://prntscr.com/m5yanr   and I'm still getting the same privlege scopes messages.

 

Doesn't seem to make a difference if I choose https or ssh

Oath used to work great. And I wouldn't mind having to enter my TFA every session...

5 answers

You will certainly need the Account Read at least as Sourcetree attempts to read your user profile to confirm the credentials are good.

What sort of useless answer is this?? 'Account read at least.. why don't you know exactly what App permissions are required to enable Sourcetree --  Sourcetree is YOUR product

How about you spell out the minimum permissions it requires.  I gave up trying to find the minimum mix and ended up just giving sourcetree app permissions to EVERYTHING so the bloody thing would work.

It's this kind of rubbish support from Atlassian that is why I've migrated most of my gits over to Github.

couldn't have said it better

Account Read and Repositories Read and Write are required, worked in SourceTree

The solution per help desk. Use SSH protocol and not HTTPS.
With SSH it will work either with Basic or OAuth

Did you clean the file 

%localappdata%\Atlassian\SourceTree\passwd

 

before setting the App Password? If not my SourceTree doesn't work.

0 votes
minnsey Atlassian Team Jan 23, 2019

Hi

You will certainly need the Account Read at least as Sourcetree attempts to read your user profile to confirm the credentials are good.

minnsey Atlassian Team Jan 23, 2019

Also can I ask why you stopped using OAuth?

Like # people like this

Oh, this is hilarious. No response? Are we supposed to use OAuth or Basic with App Password, Atlassian?

minnsey Atlassian Team Mar 17, 2022

You will need to use Account:Read and Repositories:Read and Repositories:Write.

I would strongly recommend using OAuth though because it is already configured with the correct permissions.

Except it isn't on Mac.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

78,721 views 134 29
Read article

Atlassian Community Events