I have a script that creates branches in Bitbucket in numerous repos. Until now I've been using a dedicated Bitbucket User to do this. I recently switched to using the new Workspace Access Token feature. This worked until I tried to create a branch in a repo with Branch Permissions that limit write access to certain branch types to a single group (which that dedicated user I'd been using previously has been in).
Using the Access Token, which has the "repository:write" scope, the push to create the new branch fails with `remote: Permission denied to create branch`. I believe it's due to the branch permission. Should this work? Is there a way to give the Auth Token user permission here?