<?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 Ontap API volume delete -  not authorised for that command in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Ontap-API-volume-delete-not-authorised-for-that-command/m-p/465057#M45253</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the Python Netapp libraries to create some scripts to allow users to create and delete volumes on a specific svm. &amp;nbsp;The user was created with security login create and assigned a rest-role. &amp;nbsp;The create function works but delete fails with a message.&lt;/P&gt;&lt;P&gt;job failed: not authorised for that command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I replace the limited user with the admin user the delete command succeeds, I suspect I'm missing a privilege somewhere but I'm not sure where to look, we're on&amp;nbsp;NetApp Release 9.14.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any suggestions/help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;Daniel&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jan 2026 13:16:27 GMT</pubDate>
    <dc:creator>DanielBrady</dc:creator>
    <dc:date>2026-01-13T13:16:27Z</dc:date>
    <item>
      <title>Ontap API volume delete -  not authorised for that command</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Ontap-API-volume-delete-not-authorised-for-that-command/m-p/465057#M45253</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the Python Netapp libraries to create some scripts to allow users to create and delete volumes on a specific svm. &amp;nbsp;The user was created with security login create and assigned a rest-role. &amp;nbsp;The create function works but delete fails with a message.&lt;/P&gt;&lt;P&gt;job failed: not authorised for that command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I replace the limited user with the admin user the delete command succeeds, I suspect I'm missing a privilege somewhere but I'm not sure where to look, we're on&amp;nbsp;NetApp Release 9.14.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any suggestions/help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;Daniel&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 13:16:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Ontap-API-volume-delete-not-authorised-for-that-command/m-p/465057#M45253</guid>
      <dc:creator>DanielBrady</dc:creator>
      <dc:date>2026-01-13T13:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Ontap API volume delete -  not authorised for that command</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Ontap-API-volume-delete-not-authorised-for-that-command/m-p/465105#M45256</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/114738"&gt;@DanielBrady&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the python netapp_ontap uses REST API&amp;nbsp;&lt;A href="https://pypi.org/project/netapp-ontap/" target="_blank" rel="noopener"&gt;netapp-ontap · PyPI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NetApp documentation is here&amp;nbsp;&lt;A href="https://docs.netapp.com/us-en/ontap-automation/rest/rbac_roles_users.html#rest-api" target="_blank" rel="noopener"&gt;Work with roles and users in the ONTAP REST API&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sounds like that you need to have to:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a Role with API access (REST API path) of /api/storage/volumes with Access level of Read/write&lt;/LI&gt;&lt;LI&gt;Create a user with HTTP Application access and the role that you added above.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also y&lt;SPAN&gt;ou can access the ONTAP REST API documentation through the Swagger UI at your local ONTAP system.&lt;/SPAN&gt;&lt;/P&gt;&lt;OL class=""&gt;&lt;LI&gt;&lt;P&gt;Type the URL in your browser and press&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Enter&lt;/STRONG&gt;:&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;A class="" href="https://%3Cip_address%3E/docs/api" target="_blank" rel="noopener"&gt;https://&amp;lt;ip_address&amp;gt;/docs/api&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Sign in using the ONTAP account.&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;The ONTAP API documentation page is displayed with the API calls organized in major resource categories at the bottom.&lt;/P&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;As an example of an individual API call, scroll down to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;cluster&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;category and click&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;GET /cluster&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;A href="https://docs.netapp.com/us-en/ontap-automation/reference/api_reference.html" target="_blank" rel="noopener"&gt;Reference for the ONTAP REST API&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2026 21:03:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Ontap-API-volume-delete-not-authorised-for-that-command/m-p/465105#M45256</guid>
      <dc:creator>chamfer</dc:creator>
      <dc:date>2026-01-14T21:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Ontap API volume delete -  not authorised for that command</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Ontap-API-volume-delete-not-authorised-for-that-command/m-p/465122#M45258</link>
      <description>&lt;P&gt;I would run the python script to delete the volume and then check the audit log file to see which library is missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex:&amp;nbsp;&lt;/P&gt;&lt;P&gt;security audit log show -timestamp &amp;gt;10/29/2025 15:45:00 (change the time stamp as required)&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you can run it from a Linux box you can then use grep or something to extract error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good Luck&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 05:18:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Ontap-API-volume-delete-not-authorised-for-that-command/m-p/465122#M45258</guid>
      <dc:creator>Sanaman</dc:creator>
      <dc:date>2026-01-15T05:18:35Z</dc:date>
    </item>
  </channel>
</rss>

