added permission snippet and auto-schedule script

added permission snippet and auto-schedule script