// Get returns a paginated list of users who are members of the specified group and its subgroups.
// Users in the page are ordered by user names.
// User of this resource is required to have sysadmin or admin permissions.
//
// JIRA API docs: https://docs.atlassian.com/jira/REST/server/#api/2/group-getUsersFromGroup
Get returns a paginated list of users who are members of the specified group and its subgroups.
Users in the page are ordered by user names.
User of this resource is required to have sysadmin or admin permissions.


// Get returns a paginated list of users who are members of the specified group and its subgroups . // Users in the page are ordered by user names . // User of this resource is required to have sysadmin or admin permissions . // // JIRA API docs : https : // docs . atlassian . com / jira / REST / server / #api / 2 / group - getUsersFromGroup
func (s *GroupService) Get(name string) ([]GroupMember, *Response, error) {
	apiEndpoint := fmt.Sprintf("rest/api/2/group/member?groupname=%s", name)
	req, err := s.client.NewRequest("GET", apiEndpoint, nil)
	if err != nil {
		return nil, nil, err
	}
	group := new(groupMembersResult)
	resp, err := s.client.Do(req, group)
	if err != nil {
		return nil, resp, err
	}
	return group.Members, resp, nil
}
func ( s * GroupService ) Get ( name string ) ( [ ] GroupMember , * Response , error ) { apiEndpoint := fmt . Sprintf ( " " , name ) req , err := s . client . NewRequest ( " " , apiEndpoint , nil ) if err != nil { return nil , nil , err } group := new ( groupMembersResult ) resp , err := s . client . Do ( req , group ) if err != nil { return nil , resp , err } return group . Members , resp , nil }
Get returns a paginated list of users who are members of the specified group and its subgroups.
Get returns a paginated list of users who are members of the specified group and its subgroups .