@JH - Thanks for the question and using MS Q&A platform.
According to this article: Access control lists (ACLs) in Azure Data Lake Storage Gen2 - To set file and directory level permissions, see any of the following articles:
Yes, you can use Azure CLI to change the owning user of a directory in Azure Data Lake Storage Gen2. You can use the az storage fs access set
command to update the owning user and group of a directory or file by setting the --owner
or group
parameters to the entity ID or User Principal Name (UPN) of a user.
Here is an example command to change the owner of a directory.
az storage fs access set --acl "user::rw-,group::rw-,other::-wx" -p my-directory -f my-file-system --account-name mystorageaccount --auth-mode login
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.