Set permissions in generic autodeploy.