Support the new v2 API permissions format.