Add parameter for getting only active groups or not