NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Software Development Kit (SDK) and API Discussions

Add netapp CIFS local user failed

StevenFoo
841 Views

We are trying to use powershell script to add user to a CIFS folder.
The user is a local NetApp CIFS user. 
How could we resolved it?

 

PS C:\Users\a5115049> $ACL = Get-ACL -Path \\10.165.161.139\TestProg_vol\FTI

PS C:\Users\YYY> $AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule("10.165.161.139\sysadmin","Delete","Deny")

PS C:\Users\YYY> $ACL.SetAccessRule($AccessRule)

Exception calling "SetAccessRule" with "1" argument(s): "Some or all identity references could not be translated."

At line:1 char:1

+ $ACL.SetAccessRule($AccessRule)

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : IdentityNotMappedException

If we tried the following it comes with different error message

PS C:\Users\YYY> $AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule("sysadmin.10.165.161.139.LOCAL","Delete","Deny")
PS C:\Users\YYY> $ACL.SetAccessRule($AccessRule)
Exception calling "SetAccessRule" with "1" argument(s): "The trust relationship between the primary domain and the trusted domain failed.

 

However if we use the FileExplorer security tab to add, there is no issue.

0 REPLIES 0
Public