Activate/deactivate a keygroups

Hi, is it possible activate/deactivate a keygroups from c/al code? If Yes, how ? thanks

I have heard, such a feature should be available in NAVISION 4.0 Servicepack 2 … if I don’ err …