Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to log the username of the user who initiated the BB pipeline

Dheeraj Kumar Agarwal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 17, 2025

I am looking to get the userid of the user, who triggered a particular pipeline. Any env var or any api call shall be helpful. During my investigation, I was able to extract bitbucket uuid of the user who triggered the run.

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 19, 2025

Hi @Dheeraj Kumar Agarwal

Thank you for reaching out to the community.

Unfortunately, there's no option or available default env var to get the userid of the user who triggered a Pipelines build, what you can do, however, is to get the last commit's HEAD author where the Pipelines is triggered to get the user's info like committer's author's email.

Alternatively, you can also use BB REST API endpoint to get the "creator" of the Pipeline. Here's the endpoint documentation: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-pipeline-uuid-get

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events