add get all groups

So now instead of raising an error if the 'cursor' key has been deleted, it will now just return an empty list and `None` cursor?