I am trying to query NTFS ACL for shared volumes using the c# netapp-manageability-sdk-9.6. The underlyning infrastructure is ontapi 1.120 Cluster-Mode and NetApp Release 9.2 I imagine it is possible to do it as the output of the following CLI command shows th expected result. "vserver security file-directory show -volume-name VOLUME1 -path /INPUT"
So I tried to use "file-directory-security-ntfs-dacl" and it returns the following result without any details. <results status='passed'> <num-records>0</num-records> </results>
May be the result is correct.
My questions are : 1) is it possible to query NTFS security of volume/path thru the C# SDK? 2) does file-directory-security-ntfs-* is the right "function" to use? or is there any other function ?
In case it is not possible to use the SDK to do it, is there any other mean to automate this task as it will be regularly run to check the security.
"Get-NcFileDirectorySecurity" that i used in that thread is using the API call "file-directory-security-get". note that i also used the powershell parameter "expandmask" - and i don't know exactly how you apply this on an API call or if it maybe already there by default..
Note that you going to get it badly formatted - so if you can get it using native NTFS - i think it will be easier to work with.