code: func GetUserByLoginOrEmail(c *m.ReqContext) Response {
  	query := m.GetUserByLoginQuery{LoginOrEmail: c.Query("loginOrEmail")}
  	if err := bus.Dispatch(&query); err != nil {
  		if err == m.ErrUserNotFound {
  			return Error(404, m.ErrUserNotFound.Error(), nil)
  		}
  		return Error(500, "Failed to get user", err)
  	}
  	user := query.Result
  	result := m.UserProfileDTO{
  		Id:             user.Id,
  		Name:           user.Name,
  		Email:          user.Email,
  		Login:          user.Login,
  		Theme:          user.Theme,
  		IsGrafanaAdmin: user.IsAdmin,
  		OrgId:          user.OrgId,
  	}
  	return JSON(200, &result)
  }
docs: // GET /api/users/lookup