Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Which scope I need to clone a repository's wiki

Joao
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 23, 2023

I have a workspace token ($BITBUCKET_WKP_ATOKEN_REPOSITORY) with all scope for repository (WRITE,READ,ADMIN,DELETE)

The project is private!

The wiki is activated!

I can clone the project but not the wiki

But I'm unable to clone the wiki :

 

Project:

git clone https://x-token-auth:$TOKEN@bitbucket.org/*****/*******git

Cloning into '*****'...
Receiving objects: 100% (346/346), 73.00 KiB | 247.00 KiB/s, done.
Resolving deltas: 100% (86/86), done.

 

 

But for wiki ins't possible to clone:

git clone https://x-token-auth:$ATOKEN@bitbucket.org/*****/*******git/wiki

Cloning into '*****'...
remote: Your credentials lack one or more required privilege scopes.
fatal: unable to access 'https://bitbucket.org/*****/*******.git/wiki/': The requested URL returned error: 403

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 24, 2023

Hi Joao,

Unfortunately, after my own testing and confirmation with others - it is not possible to clone the wiki using WAT as it lacks the scope required.

We have raised a feature request with our developer team to include this scope, however - please feel free to "Watch" this request for future updates and "Vote" for it to increase its visibility with regard to customer demand:

In the interim, you can make use of an App Password instead to perform this as it contains the Wiki scope.

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

Atiq
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 2, 2026

https://jira.atlassian.com/browse/BCLOUD-22562

issue above was closed without fix. 

 

The recommendation above is to use App Password instead, is also broken. That basically redirects to API tokens page.

 

Please note that, using API tokens (scoped with repo access) you can only clone the main repo but not the wiki. 

here's example error on that:

emote: Your credentials lack one or more required privilege scopes.
fatal: unable to access 'https://bitbucket.org/ws/project_name.git/wiki/':
The requested URL returned error: 403

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 3, 2026

Hi @Atiq 

To clone a wiki using API token, you'll need to follow the steps below - I've tested this and it works:

  1. Click the gear cog icon, select Atlassian Account settings > Security tab > Create and manage API Tokens

  2. Click Create API token with scopes and select Bitbucket Cloud

  3. Select read:repository:bitbucket and read:wiki:bitbucket

  4. Perform the clone using the API token by executing either of the commands below (if using the first command - you can find your username by clicking the gear cog icon and selecting Personal Bitbucket Settings - it's visible under the Bitbucket Profile Settings heading):

Please try this and let me know how it goes.

Cheers!

- Ben (Bitbucket Cloud Support)

 

Like Atiq likes this
Atiq
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 5, 2026

Thanks for the instructions.

 

Earlier, I wasn't able to find account level API token. I was using repository level API key section of the site. That's why it wasn't working.


With API key under account setting, finally I am able to git clone the wiki.

git clone https://x-bitbucket-api-token-auth:APIToken@bitbucket.org/atiq-cs/mukto-mona-tech/wiki tech-wiki
Cloning into 'tech-wiki'...
remote: Enumerating objects: 254, done.
remote: Counting objects: 100% (254/254), done.
remote: Compressing objects: 100% (112/112), done.
remote: Total 254 (delta 143), reused 239 (delta 139), pack-reused 0 (from 0)
Receiving objects: 100% (254/254), 37.05 KiB | 145.00 KiB/s, done.
Resolving deltas: 100% (143/143), done.

 

Thanks so much.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events