WIP - permisisons group update

Fixes here and there to make permissions and groups work correctly. 
Updated commands syntax to be like other commands. Also updates for how cli has changed. 

Everything seems to work again, doing double checking on all commands. 
don't allow ints