checks cohort permissions on job creation and makes json output pretty-printed