do local useruploaded = c_GetUser("%Domain","%Name") local grouplist = useruploaded["usergroups"]

if grouplist ~= nil then for _,groupitem in pairs(grouplist) do if groupitem.groupname == "MyGroup" then local newfolder = "//192.168.1.55/nas-000406_ftp/_cims/".."%Name" c_MkDir(newfolder) c_AddUserDirectory("%Domain","%Name",newfolder ,'/',true,true,true,true,true,true,true,true,true) break end end endend