<?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: Security role create by RestApi broken in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Security-role-create-by-RestApi-broken/m-p/165508#M188</link>
    <description>&lt;P&gt;i have the same issue&lt;/P&gt;</description>
    <pubDate>Wed, 31 Mar 2021 12:03:39 GMT</pubDate>
    <dc:creator>christian_redel</dc:creator>
    <dc:date>2021-03-31T12:03:39Z</dc:date>
    <item>
      <title>Security role create by RestApi broken</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Security-role-create-by-RestApi-broken/m-p/156952#M54</link>
      <description>&lt;P&gt;got this error when he tried to run a Rest API Call for /api/storage/volume&lt;/P&gt;
&lt;P&gt;00000005.000173e6 0020e504 Tue Apr 28 2020 04:53:02 -07:00 [kern_audit:info:2238] 8503e8000001567f :: ec1_netapp_cvo_ls_prod_dr_ext:CSODMGMT\svc-ls-cvo-iac :: GET /api/storage/volume :: Error: Forbidden&lt;BR /&gt;Error for this user was 403 – Forbidden …. RBAC.&lt;/P&gt;
&lt;P&gt;/api/storage/volume &lt;BR /&gt;{&lt;BR /&gt;"error": {&lt;BR /&gt;"message": "not authorized for that command"&lt;BR /&gt;"code": "6"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;Workaround provided:&lt;BR /&gt;Create a exact same role from ONTAP CLI and associate with user and it works fine.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Steps Taken:&lt;BR /&gt;Test with the affected user – doesn't work.&lt;BR /&gt;Test with admin user – worked fine.&lt;BR /&gt;Test with same role capabilities on another cluster – works fine.&lt;BR /&gt;Create a new role with same capabilities from CLI – works fine. &lt;BR /&gt;Re-associate user to old role with same capabilities as old role – fails. &lt;BR /&gt;Old role created by Ansible – works fine on another cluster with same version.&lt;/P&gt;
&lt;P&gt;developed some python code that makes REST calls. &lt;BR /&gt;This code did work and nothing has changed. If you check the logs, you can see REST call on the 20th April that were successful.&lt;/P&gt;
&lt;P&gt;Commands used to create the role :&lt;BR /&gt;security login rest-role create -vserver CVO_Prod -role cvo-rest-test -api /api/storage/volumes -access all &lt;BR /&gt;security login rest-role create -vserver CVO_Prod -role cvo-rest-test -api /api/protocols/cifs/shares -access all &lt;BR /&gt;security login rest-role create -vserver CVO_Prod -role cvo-rest-test -api /api/cluster/jobs -access all&lt;/P&gt;
&lt;P&gt;Data collected related to both role : old one created by ansible and worked before, new one created by CLI as workaround&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:05:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Security-role-create-by-RestApi-broken/m-p/156952#M54</guid>
      <dc:creator>JihedLazid</dc:creator>
      <dc:date>2025-06-04T11:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Security role create by RestApi broken</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Security-role-create-by-RestApi-broken/m-p/165508#M188</link>
      <description>&lt;P&gt;i have the same issue&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 12:03:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Security-role-create-by-RestApi-broken/m-p/165508#M188</guid>
      <dc:creator>christian_redel</dc:creator>
      <dc:date>2021-03-31T12:03:39Z</dc:date>
    </item>
  </channel>
</rss>

