Hi, I was given a task yesterday to create a bunch of folders according to organizational structure (name of folder is the same as OU, inside root folder d:\agreements) of my company and give NTFS permissions on these folders only to some people in these OUs. I retrieved all unique departments from AD and created all these folders. Now I want to automate setting NTFS permissions as much as possible. Creating security groups in AD (containing particular users from particular OU) which are mapped to these OU is the most obvious way to solve this - put these two columns (OU and AD Group) into .csv file and loops through it, giving NTFS perms to AD group.
My question is: how would I solve this if I have to give perms to multiple users per folder, not group. I know .csv file is flat file so I assume I could not have .csv file as input file (looping through multiple values in one column is not possible or is it?)? Xml file might be the answer but making it is not user friendly at all.
Shortly speaking: input for processing has to contain folder names and list of users (array) who have access to these folders.