<?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 NetApp.Manage.NaApiFailedException: not authorized for that command in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/NetApp-Manage-NaApiFailedException-not-authorized-for-that-command/m-p/110232#M1628</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're running into an issue on one of our cDOT Cluster (8.2.3P2) with sporadic closed connections as indicated by the error below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The workflow is a C# based program that uses our SDK and API calls on a W2K R2 based host.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While dedupe is running on a given Volume we check every ten seconds if dedupe is completed. The command succeeds most of the time but not always. If it fails we get this message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command was invoked on filer: 10.188.120.220&lt;BR /&gt;not authorized for that command ---&amp;gt; NetApp.Manage.NaApiFailedException: not authorized for that command&amp;nbsp;&amp;nbsp; at NetApp.Manage.NaServer.InvokeElem(NaElement element)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was also able to repro the issue in a Powershell loop where I ran " Get-NcSis &amp;lt;vol-name&amp;gt;" 100 times. I got the error in iteration 26, 36, 39, 63, 67, 70, 75, 78, 79&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot find any errors in the logs about what looks like an RBAC issue on the Cluster itself (mgwd, debug, messages). I do see the incoming requests in the apache log. What could cause the Cluster to deny authorization for the API call seemingly on a random basis?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS The cluster is not heavily loaded, so I doubt that load is a factor.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 23:11:44 GMT</pubDate>
    <dc:creator>fitzner</dc:creator>
    <dc:date>2025-06-04T23:11:44Z</dc:date>
    <item>
      <title>NetApp.Manage.NaApiFailedException: not authorized for that command</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/NetApp-Manage-NaApiFailedException-not-authorized-for-that-command/m-p/110232#M1628</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're running into an issue on one of our cDOT Cluster (8.2.3P2) with sporadic closed connections as indicated by the error below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The workflow is a C# based program that uses our SDK and API calls on a W2K R2 based host.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While dedupe is running on a given Volume we check every ten seconds if dedupe is completed. The command succeeds most of the time but not always. If it fails we get this message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command was invoked on filer: 10.188.120.220&lt;BR /&gt;not authorized for that command ---&amp;gt; NetApp.Manage.NaApiFailedException: not authorized for that command&amp;nbsp;&amp;nbsp; at NetApp.Manage.NaServer.InvokeElem(NaElement element)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was also able to repro the issue in a Powershell loop where I ran " Get-NcSis &amp;lt;vol-name&amp;gt;" 100 times. I got the error in iteration 26, 36, 39, 63, 67, 70, 75, 78, 79&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot find any errors in the logs about what looks like an RBAC issue on the Cluster itself (mgwd, debug, messages). I do see the incoming requests in the apache log. What could cause the Cluster to deny authorization for the API call seemingly on a random basis?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS The cluster is not heavily loaded, so I doubt that load is a factor.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 23:11:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/NetApp-Manage-NaApiFailedException-not-authorized-for-that-command/m-p/110232#M1628</guid>
      <dc:creator>fitzner</dc:creator>
      <dc:date>2025-06-04T23:11:44Z</dc:date>
    </item>
  </channel>
</rss>

