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

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

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

Bitbucket Cloud and Visual Studio: "Operation is forbidden" again

I'm getting the "Operation is forbidden" error when trying to login to Bitbucket from Visual Studio.

I'm using Visual Studio 2017, and the Bitbucket Extension.

I just started using Visual Studio -- I've been using VS Code, bash, and PowerShell until now. I haven't had any problem logging in on the website, pushing/pulling/fetching from the command line, and accessing repos via REST API. 

I've tried the following login combinations:

* username / regular password

* email address / regular password

* username / perfectly good app password

* username / new app password

My Atlassian account was created in November or December 2020, so it's ahead of the 15 Sep 2021 deadline, but I tried app passwords anyway, just in case that made a difference.

As a workaround, I have cloned a repo from the command line and opened the solution in Visual Studio. That doesn't fix the login problem, though. Got any ideas?

1 answer

Two fixes:

1. The preferred way: switch to VS 2019. Or maybe VS 2022. The Bitbucket capability is built into VS 2019, and you don't need the extension anymore. Everything works fine.

2. The less-preferred way. It works, but ... : Use a "god mode" app password. For the  app password I was unsuccessfully trying to use, I had it set to R/W repos, and nothing more. So I created a new app password, with all permissions enabled -- set to do everything to everything -- like logging in as root. It worked.

I cannot find documentation on which permissions are required for the VS 2017 / BB Cloud interaction, but "god mode" works, and so I'll stick with it until we migrate to a newer edition of VS.

god_mode.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events