I have Azure Data Lake Gen1 and I am using Powershell scripts to give the access permissions to the folders and the script works fine. With a change in the requirements, I have a few child folders created dynamically under the root folder in the Lake.
Is it possible to automatically propagate the permissions to the child folders created dynamically? I tried to use the below powershell script but unless the child folder already exists the Read,Execute permissions of the root doesn't propagate to the Child folders. In the portal I do see an option to apply the parent folder permissions to child folders.Under the Data Lake "Access -> Advanced -> Advanced Access -> Apply folder permissions to sub-folders" Option.
Powershell code: $df Is the Data Factory variable
Set-AzureRmDataLakeStoreItemAclEntry -Account "xxxx.azuredatalakestore.net" -Id $df.Identity.PrincipalId -Path "/" -Permissions ReadExecute -AceType User -Recurse -Concurrency 128
EDIT: Interestingly, if the root folder is created with the Write permissions and the child folders dynamically created they inherit the permissions from the parent. The Read doesn't work that way.