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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Hello how to get list of users i a group using groovy

Hello can someone help me in this how to get list of users i a group using groovy . 

 

Thanks,

Akhil

1 answer

1 accepted

5 votes
Answer accepted

Hello Akhil, 

If it is Server/DC here is the script.

import com.atlassian.jira.component.ComponentAccessor

def groupManager = ComponentAccessor.getGroupManager()

String groupName = "confluence-administrators"

groupManager.getUsersInGroup(groupName)

The group  "confluence-administrators" you can change it to your desired group. Hope this will help you. 

 

Regards,

Satya

Hello Satya,

 

Thanks man it is working as expected. Thanks alot.

Thanks,

AK

Like Satya Dusanapudi likes this

I am glad it is working for. Cheers.

 

Regards,

Satya

Like # people like this

Suggest an answer

Log in or Sign up to answer