<?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: ONTAP REST /docs/api permissions in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-REST-docs-api-permissions/m-p/158300#M89</link>
    <description>&lt;P&gt;I'm not sure if this is documented well somewhere, I didn't see it.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Aug 2020 15:21:27 GMT</pubDate>
    <dc:creator>RobertBlackhart</dc:creator>
    <dc:date>2020-08-05T15:21:27Z</dc:date>
    <item>
      <title>ONTAP REST /docs/api permissions</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-REST-docs-api-permissions/m-p/158286#M86</link>
      <description>&lt;P&gt;Hi guys&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have made a REST API user with the permissions for reading volumes and svms (via security login rest-role on an ONTAP 9.6 system). The commands are working perfect but this user can't read /docs/api. Is there an additional permission for this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for help!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:58:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-REST-docs-api-permissions/m-p/158286#M86</guid>
      <dc:creator>isc-dario</dc:creator>
      <dc:date>2025-06-04T10:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: ONTAP REST /docs/api permissions</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-REST-docs-api-permissions/m-p/158292#M87</link>
      <description>&lt;P&gt;Hi isc-dario,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, there is one more piece of access that you need to grant in order to allow custom roles to see the Swagger UI. Here is my cluster configuration that mimics what I think you have already done:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mycluster::&amp;gt; security login show -user-or-group-name restviewer

Vserver: mycluster
                                                                 Second
User/Group                 Authentication                 Acct   Authentication
Name           Application Method        Role Name        Locked Method
-------------- ----------- ------------- ---------------- ------ --------------
restviewer     http        password      restviewer       no     none

mycluster::&amp;gt; security login rest-role show -role restviewer
               Role                                    Access
Vserver        Name            API                     Level
----------     -------------   -------------------     ------
mycluster
               restviewer      /api/storage/volumes
                                                       readonly
                               /api/svm/svms           readonly
2 entries were displayed.
&lt;/LI-CODE&gt;
&lt;P&gt;With this setup, I get a 401 if I try to log in with the restviewer account. So the other thing that needs done is to allow access to the web service for that role like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mycluster::&amp;gt; vserver services web access create -vserver mycluster -name docs-api -role restviewer

mycluster::&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;After adding that, the docs page at /docs/api will load. However, there is a bug that I found while reproducing your issue. After you enter the credentials the first time and the docs load, another credential popup is shown. Entering the credentials again will not work. The workaround is to cancel the second authentication dialog. Then you can browse the docs normally.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to track the progress of the bug to fix this issue, you can view this link (may take some time to be live):&amp;nbsp;&lt;A href="https://mysupport.netapp.com/NOW/cgi-bin/bol?Type=Detail&amp;amp;Display=1342377" target="_blank"&gt;https://mysupport.netapp.com/NOW/cgi-bin/bol?Type=Detail&amp;amp;Display=1342377&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 14:11:11 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-REST-docs-api-permissions/m-p/158292#M87</guid>
      <dc:creator>RobertBlackhart</dc:creator>
      <dc:date>2020-08-05T14:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: ONTAP REST /docs/api permissions</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-REST-docs-api-permissions/m-p/158293#M88</link>
      <description>&lt;P&gt;Hi Robert&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you! Worked! Did I miss this part in the documentation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, Dario&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 14:25:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-REST-docs-api-permissions/m-p/158293#M88</guid>
      <dc:creator>isc-dario</dc:creator>
      <dc:date>2020-08-05T14:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: ONTAP REST /docs/api permissions</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-REST-docs-api-permissions/m-p/158300#M89</link>
      <description>&lt;P&gt;I'm not sure if this is documented well somewhere, I didn't see it.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 15:21:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-REST-docs-api-permissions/m-p/158300#M89</guid>
      <dc:creator>RobertBlackhart</dc:creator>
      <dc:date>2020-08-05T15:21:27Z</dc:date>
    </item>
  </channel>
</rss>

