I wanted to add repository owned by a team to linked repositories but during save the credentials are not accepted with message "Invalid username". In the background bamboo is making a call to a following API endpoint:
404 - https://api.bitbucket.org/2.0/teams/USERNAME/
If I put a name of a team as "Username" than a "linked repository" can be saved but any further requests (e.g. pulling changes from repository) are ending in 401 "Unauthorized" errors.
What is a correct solution to this problem?
I am using Bamboo version 6.8.1 and Bitbucket Cloud.