I’m trying to figure out how I can create a script that would generate the folder’s and set the permissions based on the Manager’s Value and Direct Reports. For example if I’d like to have it create the top folder for our Deputy then the subfolder for people whose manager is the Deputy but only if they have both the manager value and direct reports to value if that makes sense. The why the permissions should work is the Deputy has access to all subfolders but the Manager doesn’t. Then I’d like to create a shortcut to that path in the users Home drive. Anyone have any experience in doing this? Basically I’m trying to set it up so users aren’t sending performance evaluations via email to HR but storing them on the share for HR. The part I’m going to run into issue’s with is that there are two domains so for access I’ll need to create a domain local group to give rights to users in the other domain as HR.
If someone can point me into the right way to do this that would be great. I haven’t started writing the script or creating the folders yet as I’m waiting for management to let me know what file server to store them on.
But ideally I’ll pull from what’s in the AD for Manager and Direct Reports and/or export that into a CSV list and use that to create the folders and set the rights.