Hi,
i think actually not directly. Bitbucket Cloud does not expose a public REST API for the workspace Audit log.
If you subscribe to Atlassian Guard and link your Bitbucket Cloud workspace to your Atlassian organization, Bitbucket events are included in the organization-level audit log.
Bitbucket Cloud audit log events | Bitbucket Cloud | Atlassian Support
BR
Kai
Hi @Leo Xie
Thank you for reaching out...
The Audit logs available directly in the Bitbucket workspace do not currently offer exporting/API capabilities, we have a feature request BCLOUD-13176 for the same
If your domain is part of an Atlassian organization that has an active Atlassian Guard subscription,
To enable this option, an admin of the workspace will need to link this workspace to the org, following the steps below:
To link a Bitbucket workspace to your organization:
- Go to Atlassian Administration. Select your organization if you have more than one.
- Select Apps.
- Select More actions (•••).
- Select Link Bitbucket.
- Follow the prompts to finish linking your workspace. You can link one workspace at a time.
After the link is completed, you can access the audit logs for Bitbucket Cloud directly from your organization:
- Go to Atlassian Administration. Select your organization if you have more than one.
- Select Security > Audit log.
And they will also be available through the Organization API. You can find additional information, including the list of events that are part of the Audit logs, in the article below:
I hope this helps.
Thanks
Shwetha Suvarna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.