Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can we get user_group details from user UUID by triggering a pipeline

Pranjal Kesharwani March 21, 2024

I am triggering a custom pipeline and I am getting user UUID by the variable $

BITBUCKET_STEP_TRIGGERER_UUID .Now I want to know the user_group for this user .So do we have any variable like above or any v2 api's or any other method .

1 answer

2 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 22, 2024

Hi Pranjal and welcome to the community!

There is no default variable for this.

Please keep in mind that a certain user may belong to more than one user group.

You can use the groups endpoint from v1 of our API to get all groups of the workspace and all members of each group:

Once you have these details, you can then check in which groups the user with BITBUCKET_STEP_TRIGGERER_UUID belongs.

Kind regards,
Theodora

Suggest an answer

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

Atlassian Community Events