Grant access to shared folder


Can someone help me with file server automation? I need to assign folder access (read,write etc.) to a AD user using UiPath. Not able find a right way to do it using UiPath.


Hi @SJ00

Manually access the path of file server by robot user one time and keep the certificate.

There is a way to give permissions, through command prompt

You have to get the inputs like path of the folder name and User in AD

Then execute below command.
C:>icacls “D:\test” /grant John:(OI)(CI)F /T

You can get more info by typing icacls in command prompt.

Hope this helps you



Check this one, it may help you to change a folder permission.

ChangeFolderProperties.xaml (6.2 KB)


Thanks for all the suggestions. Below powershell script worked for me.

New-Object System.Security.AccessControl.FileSystemAccessRule($userID, “Modify”, “ContainerInherit,ObjectInherit”, “None”, “Allow”)

Just not able to add ‘Read and Write’ permission together using above script. I do not want ‘Read And Execute’ or ‘Modify’ permissions. Only ‘Read’ and ‘Write’.

Can someone help to modify above query.