Automation of user analysis workflow in CMS