Access levels
Each Bitbucket account has an access level: Read-only, Read + write, and Full access. Squad refuses any agent action outside that level. You can also narrow or block single agents under Per-agent access.What agents can do at each level
Each level opens with a short summary in plain tasks, then lists every action it adds, grouped by what the action works on. You do not need to name actions. Ask in plain words, and the agent searches for the matching action. Each action shows its name, a one-line description where the Bitbucket action catalog has one, and its slug. The slug is the ID that agents use when they call the action.Read-only
Read-only
- View and create commits
- View and search code
- View comments
- View repositories
- View workspaces
- View pull requests
- View branches
- View email addresses
- View environments
- View pipelines
- View reports
- View snippets
Activities (1)
Activities (1)
Bases (1)
Bases (1)
Branches (2)
Branches (2)
Change history (1)
Change history (1)
Code (5)
Code (5)
Comments (4)
Comments (4)
Commits (8)
Commits (8)
Content (1)
Content (1)
Deployments (1)
Deployments (1)
Email addresses (2)
Email addresses (2)
Environments (2)
Environments (2)
Events (1)
Events (1)
Files (1)
Files (1)
Forks (1)
Forks (1)
Issues (2)
Issues (2)
Keys (1)
Keys (1)
Members (1)
Members (1)
Pipelines (3)
Pipelines (3)
Projects (1)
Projects (1)
Pull requests (5)
Pull requests (5)
Reports (3)
Reports (3)
Repositories (12)
Repositories (12)
Runners (1)
Runners (1)
Schedules (1)
Schedules (1)
Settings (3)
Settings (3)
Snippets (3)
Snippets (3)
Tasks (1)
Tasks (1)
Users (2)
Users (2)
Variables (2)
Variables (2)
Versions (1)
Versions (1)
Watchers (1)
Watchers (1)
Workspaces (4)
Workspaces (4)
Read + write (recommended)
Read + write (recommended)
- Create, update, and delete comments
- Create and update pull requests
- Create and update variables
- Create, update, and delete issues
- Create branches
- Update reports
- Create repositories
Full access
Full access
- Stop pipelines
- Delete repositories
- Delete variables
Connect Bitbucket
Before you start:- You need a Bitbucket account that you can sign in to.
- Your Squad subscription must be active. Squad does not connect apps while the subscription is not active.
Open Integrations
Add an integration
Find Bitbucket
Choose an access level
Click Connect Bitbucket
Sign in to Bitbucket
Change the access level
- Under YOUR CONNECTIONS, find the Bitbucket account.
- Open the account menu (⋯) and click Manage scope.
- Under Default scope, choose the new level.
- Click Save access.
Set access for one agent
Every agent uses the account’s level unless you set something else for it. You can narrow one agent to a lower level, or block it.- Under YOUR CONNECTIONS, open the account menu (⋯) on the Bitbucket account.
- Click Manage scope.
- Under Per-agent access, find the agent.
- Choose the Default option to follow the account’s level, choose a lower level, or choose No access.
- Click Save access.
Use more than one Bitbucket account
Click + Account on the Bitbucket card to connect another account. Agents use the primary account unless they are asked to use a specific one.- After you click + Account, follow the connect steps above.
- Each account has its own access level.
- The first account you connect becomes the primary account. It shows ★ PRIMARY.
- To change the primary account, open the account menu (⋯) and click Make primary.
- To tell accounts apart, open the account menu (⋯) and click Rename.
Reconnect or disconnect
Reconnect when the connection has expired, or when you need to change what the account can reach on the Bitbucket side:- Open the account menu (⋯) and click Reconnect.
- Click Reauthorize on Bitbucket.
- Sign in to Bitbucket and approve the request.
Costs
Bitbucket actions do not use Squad credits. Connected apps never use credits. For what does use credits, see What Squad costs.Troubleshooting
An agent reports that an action is not allowed on this account.- Cause: the action is outside the account’s access level, or outside the level you set for that agent.
- Fix: choose a higher level in Manage scope, or change the agent’s row under Per-agent access.
- Cause: the agent is set to No access under Per-agent access, or the account is not connected.
- Fix: open Manage scope and change the agent’s row. If the account is missing, connect it again.
- Cause: your Squad subscription is not active.
- Fix: resubscribe. See Manage your subscription.
- Cause: the sign-in for that account is no longer valid.
- Fix: use Reconnect on the account.
Common questions
Can I limit what agents can do in Bitbucket?
Can I limit what agents can do in Bitbucket?
Can I connect more than one Bitbucket account?
Can I connect more than one Bitbucket account?
How do I disconnect Bitbucket?
How do I disconnect Bitbucket?
BITBUCKET_GET_COMMIT_COMMENTBITBUCKET_GET_PULL_REQUEST_COMMENTBITBUCKET_GET_REPOSITORIES_COMMIT_COMMENTSBITBUCKET_GET_REPOSITORIES_PULLREQUESTS_COMMENTS