<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Add netapp CIFS  local user failed in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Add-netapp-CIFS-local-user-failed/m-p/455786#M3289</link>
    <description>&lt;P&gt;We are trying to use powershell script to add user to a CIFS folder.&lt;BR /&gt;The user is a local NetApp CIFS user.&amp;nbsp;&lt;BR /&gt;How could we resolved it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\Users\a5115049&amp;gt; $ACL = Get-ACL -Path \\10.165.161.139\TestProg_vol\FTI&lt;/P&gt;&lt;P&gt;PS C:\Users\YYY&amp;gt; $AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule("10.165.161.139\sysadmin","Delete","Deny")&lt;/P&gt;&lt;P&gt;PS C:\Users\YYY&amp;gt; $ACL.SetAccessRule($AccessRule)&lt;/P&gt;&lt;P&gt;Exception calling "SetAccessRule" with "1" argument(s): "Some or all identity references could not be translated."&lt;/P&gt;&lt;P&gt;At line:1 char:1&lt;/P&gt;&lt;P&gt;+ $ACL.SetAccessRule($AccessRule)&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : NotSpecified: (:) [], MethodInvocationException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : IdentityNotMappedException&lt;BR /&gt;&lt;BR /&gt;If we tried the following it comes with different error message&lt;/P&gt;&lt;P&gt;PS C:\Users\YYY&amp;gt; $AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule("sysadmin.10.165.161.139.LOCAL","Delete","Deny")&lt;BR /&gt;PS C:\Users\YYY&amp;gt; $ACL.SetAccessRule($AccessRule)&lt;BR /&gt;Exception calling "SetAccessRule" with "1" argument(s): "The trust relationship between the primary domain and the trusted domain failed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However if we use the FileExplorer security tab to add, there is no issue.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2024 03:28:21 GMT</pubDate>
    <dc:creator>StevenFoo</dc:creator>
    <dc:date>2024-10-15T03:28:21Z</dc:date>
    <item>
      <title>Add netapp CIFS  local user failed</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Add-netapp-CIFS-local-user-failed/m-p/455786#M3289</link>
      <description>&lt;P&gt;We are trying to use powershell script to add user to a CIFS folder.&lt;BR /&gt;The user is a local NetApp CIFS user.&amp;nbsp;&lt;BR /&gt;How could we resolved it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\Users\a5115049&amp;gt; $ACL = Get-ACL -Path \\10.165.161.139\TestProg_vol\FTI&lt;/P&gt;&lt;P&gt;PS C:\Users\YYY&amp;gt; $AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule("10.165.161.139\sysadmin","Delete","Deny")&lt;/P&gt;&lt;P&gt;PS C:\Users\YYY&amp;gt; $ACL.SetAccessRule($AccessRule)&lt;/P&gt;&lt;P&gt;Exception calling "SetAccessRule" with "1" argument(s): "Some or all identity references could not be translated."&lt;/P&gt;&lt;P&gt;At line:1 char:1&lt;/P&gt;&lt;P&gt;+ $ACL.SetAccessRule($AccessRule)&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : NotSpecified: (:) [], MethodInvocationException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : IdentityNotMappedException&lt;BR /&gt;&lt;BR /&gt;If we tried the following it comes with different error message&lt;/P&gt;&lt;P&gt;PS C:\Users\YYY&amp;gt; $AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule("sysadmin.10.165.161.139.LOCAL","Delete","Deny")&lt;BR /&gt;PS C:\Users\YYY&amp;gt; $ACL.SetAccessRule($AccessRule)&lt;BR /&gt;Exception calling "SetAccessRule" with "1" argument(s): "The trust relationship between the primary domain and the trusted domain failed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However if we use the FileExplorer security tab to add, there is no issue.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 03:28:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Add-netapp-CIFS-local-user-failed/m-p/455786#M3289</guid>
      <dc:creator>StevenFoo</dc:creator>
      <dc:date>2024-10-15T03:28:21Z</dc:date>
    </item>
  </channel>
</rss>

