implemented group-privileges endpoint ; added tests ; added docs