The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events