Please check the log file for compile errors. The log file is at:
C:\ProgramData\Enterprise Distributed Technologies\CompleteFTP\Logs\Diagnostics.log
Your script yielded the following error:
JSS compile error: no viable alternative at input 'var' (line 6, column 5)
This error is happening because you should be using forward slashes instead of backslashes.
Another couple of points:
1. there's no need to get the Group object, using config.groups.get, as you're really just using the name
2. the permissions need to be set to an array of strings with one permission per string.
3. you don't need to put quotes around the group name when you invoke the command
4. it's a good idea to check if the folder was found, so I've added code to do that
Please try the following script.
function groupfolderperm(groupName) {
var config = system.getConfig();
var fullpath = "/home/" + groupName;
var folder = config.folders.get(fullpath);
if (!folder)
throw "Could not find folder, " + fullpath;
folder.access.group.groupName = groupName;
folder.access.group.permissions = [ "FileRead", "FileWrite", "FileAppend", "FileRename", "FileDelete", "FileExecute", "DirList" ];
config.applyChanges();
}
I've tested it and it works for me.