I am attempting to use the legacy v1 endpoint
GET https://api.bitbucket.org/1.0/groups/{workspace}/{group_slug}
with the new api token auth method but it does not work. It says:
162{"type": "error", "error": {"message": "You do not have access to view this workspace."}}
I run this call:
curl --request GET \
--url 'https://api.bitbucket.org/1.0/groups/{workspace}/{group_slug}' \
--user '{atlassian_account_email}:{api_token}' \
--header 'Accept: application/json'
calls like https://api.bitbucket.org/2.0/user and https://api.bitbucket.org/2.0/workspaces/<workspace> work correctly so im wondering if it has to do with the /groups being legacy 1.0. To my knowledge the specific endpoint that I am using does not have a 2.0 version.
These are the permissions I have on the service account: