<?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 Re: Custom user not authorized for REST API but it is? in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Custom-user-not-authorized-for-REST-API-but-it-is/m-p/436505#M328</link>
    <description>&lt;P&gt;Thanks, I see the point, for REST I need a rest-role.&amp;nbsp; So I set up the following but still getting Unauthorized, I will keep at it but thought I'd update&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unauthorized for url: &lt;A href="https://hostname:443/api/storage/qtrees" target="_blank"&gt;https://hostname:443/api/storage/qtrees&lt;/A&gt;&lt;BR /&gt;Unauthorized for url: &lt;A href="https://hostname:443/api/storage/quota/rules" target="_blank"&gt;https://hostname:443/api/storage/quota/rules&lt;/A&gt;&lt;BR /&gt;Unauthorized for url: &lt;A href="https://hostname:443/api/protocols/cifs/shares" target="_blank"&gt;https://hostname:443/api/protocols/cifs/shares&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hostname::security login&amp;gt; rest-role show -role ldrive&lt;BR /&gt;Role Access&lt;BR /&gt;Vserver Name API Level&lt;BR /&gt;---------- ------------- ------------------- ------&lt;BR /&gt;vserver&lt;BR /&gt;ldrive /api/protocols/cifs all&lt;BR /&gt;/api/storage/qtrees all&lt;BR /&gt;/api/storage/quota all&lt;BR /&gt;3 entries were displayed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hostname::security login&amp;gt; show -vserver svm_bambi_nypntap1 -user-or-group-name rest_user&lt;BR /&gt;Vserver: vserver&lt;BR /&gt;Second&lt;BR /&gt;User/Group Authentication Acct Authentication&lt;BR /&gt;Name Application Method Role Name Locked Method&lt;BR /&gt;-------------- ----------- ------------- ---------------- ------ --------------&lt;BR /&gt;rest_user http password ldrive no none&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2022 14:44:04 GMT</pubDate>
    <dc:creator>Cjones</dc:creator>
    <dc:date>2022-07-07T14:44:04Z</dc:date>
    <item>
      <title>Custom user not authorized for REST API but it is?</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Custom-user-not-authorized-for-REST-API-but-it-is/m-p/435822#M324</link>
      <description>&lt;P&gt;&amp;nbsp;I have a REST API script that works with cluster admin user, but I'd like to use a user with fewer permissions on the system.&amp;nbsp; I've created a user with only privileges needed to create a qtree, quota, and share but get the following using that user.&amp;nbsp; Any ideas?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Exception caught : Caused by HTTPError('401 Client Error: Unauthorized for url: &lt;A href="https://nypntap1.jallc.lan:443/api/storage/qtrees" target="_blank"&gt;https://nypntap1.jallc.lan:443/api/storage/qtrees&lt;/A&gt;',): User is not authorized.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Role:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;rest_ldrive DEFAULT none&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;volume qtree create all&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;volume qtree show all&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;volume quota policy rule create all&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;volume quota policy rule delete all&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;volume quota policy rule modify all&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;volume quota policy rule show all&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;vserver cifs share access-control create all&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;vserver cifs share access-control delete all&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;vserver cifs share access-control modify all&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;vserver cifs share access-control show all&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;vserver cifs share create all&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;vserver cifs share delete all&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;vserver cifs share modify all&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;vserver cifs share show all &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;User/Group Authentication Acct Authentication&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Name Application Method Role Name Locked Method&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-------------- ----------- ------------- ---------------- ------ --------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;rest_user http password rest_ldrive no none&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:59:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Custom-user-not-authorized-for-REST-API-but-it-is/m-p/435822#M324</guid>
      <dc:creator>Cjones</dc:creator>
      <dc:date>2025-06-04T09:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom user not authorized for REST API but it is?</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Custom-user-not-authorized-for-REST-API-but-it-is/m-p/435890#M325</link>
      <description>&lt;P&gt;With ONTAP 9.11.1 legacy roles can be leveraged and ONTAP REST requires rest-role creation either through CLI or ONTAP REST API. Please find below example that shows how to create rest-role&lt;/P&gt;&lt;H2&gt;&lt;STRONG&gt;Create rest-role through CLI: &lt;/STRONG&gt;&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;metropolitan::&amp;gt; &lt;EM&gt;s&lt;FONT color="#3366FF"&gt;ecurity login rest-role create -vserver metropolitan &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;-role new_role -api /api/storage/volumes -access read_create_modify &lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;metropolitan::&amp;gt; &lt;EM&gt;&lt;FONT color="#3366FF"&gt;security login rest-role show -role new_role&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color="#3366FF"&gt;Role&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Access&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;EM&gt;Vserver&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; API&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Level&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;EM&gt;----------&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----------&amp;nbsp;&amp;nbsp; -------------------&amp;nbsp;&amp;nbsp; ------------------&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;m&lt;EM&gt;etropolitan&amp;nbsp;&amp;nbsp; new_role&amp;nbsp;&amp;nbsp;&amp;nbsp; /api/storage/volumes&amp;nbsp;&amp;nbsp; read_create_modify&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;U&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;Adding 9.11.1 RBAC Roles reference document:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT color="#3366FF"&gt;&amp;nbsp;&lt;A href="https://library.netapp.com/ecmdocs/ECMLP2882307/html/index.html#/docs/security/security_roles" target="_blank"&gt;https://library.netapp.com/ecmdocs/ECMLP2882307/html/index.html#/docs/security/security_roles&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 04:54:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Custom-user-not-authorized-for-REST-API-but-it-is/m-p/435890#M325</guid>
      <dc:creator>qw</dc:creator>
      <dc:date>2022-06-14T04:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Custom user not authorized for REST API but it is?</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Custom-user-not-authorized-for-REST-API-but-it-is/m-p/436505#M328</link>
      <description>&lt;P&gt;Thanks, I see the point, for REST I need a rest-role.&amp;nbsp; So I set up the following but still getting Unauthorized, I will keep at it but thought I'd update&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unauthorized for url: &lt;A href="https://hostname:443/api/storage/qtrees" target="_blank"&gt;https://hostname:443/api/storage/qtrees&lt;/A&gt;&lt;BR /&gt;Unauthorized for url: &lt;A href="https://hostname:443/api/storage/quota/rules" target="_blank"&gt;https://hostname:443/api/storage/quota/rules&lt;/A&gt;&lt;BR /&gt;Unauthorized for url: &lt;A href="https://hostname:443/api/protocols/cifs/shares" target="_blank"&gt;https://hostname:443/api/protocols/cifs/shares&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hostname::security login&amp;gt; rest-role show -role ldrive&lt;BR /&gt;Role Access&lt;BR /&gt;Vserver Name API Level&lt;BR /&gt;---------- ------------- ------------------- ------&lt;BR /&gt;vserver&lt;BR /&gt;ldrive /api/protocols/cifs all&lt;BR /&gt;/api/storage/qtrees all&lt;BR /&gt;/api/storage/quota all&lt;BR /&gt;3 entries were displayed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hostname::security login&amp;gt; show -vserver svm_bambi_nypntap1 -user-or-group-name rest_user&lt;BR /&gt;Vserver: vserver&lt;BR /&gt;Second&lt;BR /&gt;User/Group Authentication Acct Authentication&lt;BR /&gt;Name Application Method Role Name Locked Method&lt;BR /&gt;-------------- ----------- ------------- ---------------- ------ --------------&lt;BR /&gt;rest_user http password ldrive no none&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 14:44:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Custom-user-not-authorized-for-REST-API-but-it-is/m-p/436505#M328</guid>
      <dc:creator>Cjones</dc:creator>
      <dc:date>2022-07-07T14:44:04Z</dc:date>
    </item>
  </channel>
</rss>

