I just spun up a fresh project and used yarn strapi generate:api test test:string (didn’t autostart).
yarn strapi generate:api test test:string
And set that bootstrap code example in the ./config/functions/bootstrap.js and it properly set the permissions:
./config/functions/bootstrap.js