Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,058
Community Members
 
Community Events
168
Community Groups

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