Hi, At the moment we have script that listing all users of a group and well as nested group.
we are using following methods.
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.security.login.LoginManager
import java.text.SimpleDateFormat;
import java.util.Date;
def loginManager = ComponentAccessor.getComponentOfType(LoginManager.class)
def groupManager = ComponentAccessor.getGroupManager()
def users = groupManager.getUsersInGroup("Group1")
StringBuilder builder=new StringBuilder()
Can any one please help, how to list direct access users from particular group (we don't want to list sub-group users), only direct access users.
Thanks in advance
HI @Martin Bayer [MoroSystems, s.r.o.] , @Nir Haimov ,
Thanks for your response.
At the moment we have many groups and users in our Jira Projects, so we have created many nested groups (e.g- GroupB is the sub-group of GroupA). there are some users are present in parent group(GroupA) as well child group(GroupB),
Our scenario is : To get list of users who are present in parent group (i.e- GroupA).
But we have script it listing all users parent groups as well as child group members.
Can you please tell me, How to print list of users from only who are present in parent groups
Thanks in Advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Rao B I'm not an expert for these functions but
So from this point of view you're not able to get such detailed information using Jira API...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Rao B
you can use these method to get the users who only belongs to a parent group and not the child groups.
Returns all the users that are direct members of the group.
thank you,
Atib
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online 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.