Hello can someone help me in this how to get list of users i a group using groovy .
Thanks,
Akhil
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am glad it is working for. Cheers.
Regards,
Satya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.