Missed Team ’24? Catch up on announcements here.

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

Why can't a user designated as an Admin push to a repo?

Fred Fierling April 9, 2024

I want a user to have read-only access to a repo and be able to clone it so that he can push changes to the clone. I've given him Admin perms for the cloned repo. He can pull from it, but he can't push to it. He has no other perms (workspace or project). Can this work? If not, what has to be added? 

 

Unauthorized
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 3760, received 2424 bytes, in 0.2 seconds
Bytes per second: sent 18473.2, received 11909.3
debug1: Exit status 1
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

1 answer

1 accepted

1 vote
Answer accepted
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 10, 2024

Hi @Fred Fierling

Thank you for reaching out to the community.

Could you confirm if the use is using SSH or HTTPS connection while cloning/pushing to the repository?

Also, the "Unauthorized" error is likely related to authentication permissions.

If the user is using an App password, you can refer to this existing knowledge-based article that might help: Error message 401: Unauthorized/Invalid Credentials in Visual Studio Bitbucket Cloud Extension

Regards,
Mark C

Fred Fierling April 23, 2024

The user is using SSH. His public key was configured in the repo's Access Keys.

This page has "Use access keys to gain read-only access to this repository." so we also tried giving him Admin perms in the Project Access Keys and even for the workspace. No joy.

Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 24, 2024

Hi @Fred Fierling

Could you try removing the SSH key from the repo's Access keys and then ask the user to add it to their personal SSH key settings? - https://bitbucket.org/account/settings/ssh-keys/

After that, give admin permission to the user.

Let's see what happens after that.

Regards,
Mark C

Fred Fierling April 25, 2024

That's the trick.

Thanks,

Suggest an answer

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

Atlassian Community Events