gl_list_groups function

List and manage groups