Added groups to api