code: func GetTeamMembers(c *m.ReqContext) Response {
  	query := m.GetTeamMembersQuery{OrgId: c.OrgId, TeamId: c.ParamsInt64(":teamId")}
  
  	if err := bus.Dispatch(&query); err != nil {
  		return Error(500, "Failed to get Team Members", err)
  	}
  
  	for _, member := range query.Result {
  		member.AvatarUrl = dtos.GetGravatarUrl(member.Email)
  		member.Labels = []string{}
  
  		if setting.IsEnterprise && setting.LdapEnabled && member.External {
  			member.Labels = append(member.Labels, "LDAP")
  		}
  	}
  
  	return JSON(200, query.Result)
  }
docs: // GET /api/teams/:teamId/members