API for plugins adapted to new permissions