MIFOSX-1670 : Modified Code for Role Functionality

@vishwasbabu 

This is complete new pull request for role functionality
command should be an action, can you please rename this to "enable"