It seems like there's no way to do what I want: We have a ton of CIFS shares hosted by our NetApp. We need to add a new AD account (let's call it "BackupCIFS") to the NTFS Security permissions tab of every CIFS share hosted by this NetApp (over 400 shares)
After a bunch of research, from NetApp CLI doesn't look like it's doable. This command: vserver cifs share access-control create -vserver <vserver> -server -share <share> -user-or-group <account> -permission modify works beautifully.............to add the account to the "Network Sharing" tab of the CIFS shares (same as adding the account to the "Shares" fields in System Manager).
But I cannot find a NetApp CLI command to do the exact same to the NTFS security tab.
The closest thing I have found is: vserver security file-directory ntfs dacl add -vserver <vserver> -ntfs-sd <newSD> -access-type allow -account <account> -rights read -apply-to this-folder
But this command looks like it only create a new Security Descriptor and the correct DACLs/ACEs to it. So I end up with an unused Security Descriptor.
Ok, so then, I try to leverage the NetApp PowerShell Toolkit. Mind you my PowerShell is beginner level right now. I install the Toolkit (the latest one, 9.15.x). Then I look up some NetApp PowerShell commands, such as:
Get-NcCifsShare -Name - it works, but I don't understand the Security Descriptor output, and it only displays the BUILTIN accounts assigned to the share (I don't see the AD accounts, for example)
Get-NcNtfsEffectiveAccess
Set-NcNtfsAccess
I got these commands by asking Copilot for NetApp PowerShell commands and it gave me those, but when I look up the available cmdlets using "Get-NcCommand", I have absolutely zero cmdlets available that have anything to do with NTFS.
So either the AI hallucinated those commands into existence, or I am missing something.
Is there any way I can get my task done either from the CLI or PowerShell?