<?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: /api/protocols/file-security/permissions and missing SID in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/api-protocols-file-security-permissions-and-missing-SID/m-p/453295#M682</link>
    <description>&lt;P&gt;Refresh?&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2024 06:47:24 GMT</pubDate>
    <dc:creator>josem</dc:creator>
    <dc:date>2024-06-19T06:47:24Z</dc:date>
    <item>
      <title>/api/protocols/file-security/permissions and missing SID</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/api-protocols-file-security-permissions-and-missing-SID/m-p/441388#M429</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to display file permissions using rest-api. I have an old vserver and it does not work when SECD cannot resolve SID. It's fine using ZAPI.&amp;nbsp; It displays SID when it cannot resolve to windows name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;GET https://ip/api/protocols/file-security/permissions/c26b5fac-1135-11ea-a956-00a098d1acc2/%2FVOLUME%2FDIR%2FSUBDIR&lt;BR /&gt;User-Agent: python-requests/2.28.1&lt;BR /&gt;Accept-Encoding: gzip, deflate&lt;BR /&gt;Accept: */*&lt;BR /&gt;Connection: keep-alive&lt;BR /&gt;X-Dot-Client-App: netapp-ontap-python-9.11.1.0&lt;BR /&gt;Authorization: Basic aW52ZW50YWlyZTpZb3VwbGFib3VtMzA=&lt;BR /&gt;None&lt;BR /&gt;-----------------------------&lt;BR /&gt;DEBUG:charset_normalizer:Encoding detection: ascii is most likely the one.&lt;BR /&gt;DEBUG:netapp_ontap.host_connection:&lt;BR /&gt;-----------RESPONSE-----------&lt;BR /&gt;404 Not Found&lt;BR /&gt;Date: Thu, 02 Feb 2023 10:48:14 GMT&lt;BR /&gt;Server: libzapid-httpd&lt;BR /&gt;X-Content-Type-Options: nosniff&lt;BR /&gt;Cache-Control: no-cache,no-store,must-revalidate&lt;BR /&gt;Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; frame-ancestors: 'self'&lt;BR /&gt;Content-Length: 144&lt;BR /&gt;Content-Type: application/hal+json&lt;BR /&gt;Keep-Alive: timeout=5, max=99&lt;BR /&gt;Connection: Keep-Alive&lt;BR /&gt;{&lt;BR /&gt;"error": {&lt;BR /&gt;"message": "Failed to convert SID to a Windows name. Reason: \"SecD Error: object not found\". ",&lt;BR /&gt;"code": "4849677"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;------------------------------&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/home/XXXXXX/projects/reporting_acls/test.py", line 14, in &amp;lt;module&amp;gt;&lt;BR /&gt;resource.get()&lt;BR /&gt;File "/srv/xxxxx/venv/netapp/lib/python3.9/site-packages/netapp_ontap/resources/file_directory_security.py", line 1048, in get&lt;BR /&gt;return super()._get(**kwargs)&lt;BR /&gt;File "/srv/xxxxx/venv/netapp/lib/python3.9/site-packages/netapp_ontap/utils.py", line 55, in wrapper&lt;BR /&gt;return on_api_fail(erro)&lt;BR /&gt;File "/srv/xxxxx/venv/netapp/lib/python3.9/site-packages/netapp_ontap/utils.py", line 78, in on_api_fail&lt;BR /&gt;raise NetAppRestError(cause=erro) from None&lt;BR /&gt;netapp_ontap.error.NetAppRestError: Caused by HTTPError('404 Client Error: Not Found for url: https://IP:443/api/protocols/file-security/permissions/c26b5fac-1135-11ea-a956-00a098d1acc2/%2FVOLUME%2FDIR%2FSUBDIR'): Failed to convert SID to a Windows name. Reason: "SecD Error: object not found".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 10:59:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/api-protocols-file-security-permissions-and-missing-SID/m-p/441388#M429</guid>
      <dc:creator>Oc77</dc:creator>
      <dc:date>2023-02-02T10:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: /api/protocols/file-security/permissions and missing SID</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/api-protocols-file-security-permissions-and-missing-SID/m-p/441704#M440</link>
      <description>&lt;P&gt;Have you tried using /administrator/windows in the file-security path, like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;GET https://ip/api/protocols/file-security/effective-permissions/cf5f271a-1beb-11ea-8fad-005056bb645e/&lt;STRONG&gt;administrator/windows/&lt;/STRONG&gt;%2F?share.name=sh1&amp;amp;return_records=true&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 14:26:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/api-protocols-file-security-permissions-and-missing-SID/m-p/441704#M440</guid>
      <dc:creator>ddegraaf</dc:creator>
      <dc:date>2023-02-16T14:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: /api/protocols/file-security/permissions and missing SID</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/api-protocols-file-security-permissions-and-missing-SID/m-p/450371#M647</link>
      <description>&lt;P&gt;But if you add /administrator/windows it´s not the same path.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could explain it?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 12:16:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/api-protocols-file-security-permissions-and-missing-SID/m-p/450371#M647</guid>
      <dc:creator>josem</dc:creator>
      <dc:date>2024-01-22T12:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: /api/protocols/file-security/permissions and missing SID</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/api-protocols-file-security-permissions-and-missing-SID/m-p/451386#M659</link>
      <description>&lt;P&gt;Any help with this issue?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 12:01:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/api-protocols-file-security-permissions-and-missing-SID/m-p/451386#M659</guid>
      <dc:creator>josem</dc:creator>
      <dc:date>2024-03-13T12:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: /api/protocols/file-security/permissions and missing SID</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/api-protocols-file-security-permissions-and-missing-SID/m-p/451387#M660</link>
      <description>&lt;P&gt;You need "administrator/windows" in the path because you are trying to access the effective permissions on a windows admin user. According to the &lt;A href="https://docs.netapp.com/us-en/ontap-restapi//ontap/protocols_file-security_effective-permissions_svm.uuid_path_endpoint_overview.html" target="_blank" rel="noopener"&gt;docs&lt;/A&gt;&amp;nbsp;this is what is needed for the endpoint.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that helps!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 13:11:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/api-protocols-file-security-permissions-and-missing-SID/m-p/451387#M660</guid>
      <dc:creator>ddegraaf</dc:creator>
      <dc:date>2024-03-13T13:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: /api/protocols/file-security/permissions and missing SID</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/api-protocols-file-security-permissions-and-missing-SID/m-p/451426#M661</link>
      <description>&lt;P&gt;It´s not the same,&amp;nbsp; &amp;nbsp;the first thing it´s for&amp;nbsp; get the&amp;nbsp; permission with all the user like the first eg.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://ip/api/protocols/file-security/permissions/c26b5fac-1135-11ea-a956-00a098d1acc2/%2FVOLUME%2FDIR%2FSUBDIR&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The case you referenced it´s for see the effective permissions of a unique user, because this you detailed it the administrator user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl -X GET "&lt;A href="https://10.63.26.252/api/protocols/file-security/effective-permissions/cf5f271a-1beb-11ea-8fad-005056bb645e/administrator/windows/%2F?share.name=sh1&amp;amp;return_records=true" target="_blank"&gt;https://10.63.26.252/api/protocols/file-security/effective-permissions/cf5f271a-1beb-11ea-8fad-005056bb645e/administrator/windows/%2F?share.name=sh1&amp;amp;return_records=true&lt;/A&gt;" -H "accept: application/json" -H "authorization: Basic YWRtaW46bmV0YXBwMSE="&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.netapp.com/us-en/ontap-restapi-98/ontap/protocols_file-security_effective-permissions_svm.uuid_path_endpoint_overview.html#overview" target="_blank"&gt;https://docs.netapp.com/us-en/ontap-restapi-98/ontap/protocols_file-security_effective-permissions_svm.uuid_path_endpoint_overview.html#overview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It´s no the same, one it´s for seeing the permission of the path or file, etc... and the other it´s for a particular user.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 07:53:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/api-protocols-file-security-permissions-and-missing-SID/m-p/451426#M661</guid>
      <dc:creator>josem</dc:creator>
      <dc:date>2024-03-15T07:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: /api/protocols/file-security/permissions and missing SID</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/api-protocols-file-security-permissions-and-missing-SID/m-p/451867#M672</link>
      <description>&lt;P&gt;Any help?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 11:28:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/api-protocols-file-security-permissions-and-missing-SID/m-p/451867#M672</guid>
      <dc:creator>josem</dc:creator>
      <dc:date>2024-04-09T11:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: /api/protocols/file-security/permissions and missing SID</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/api-protocols-file-security-permissions-and-missing-SID/m-p/452538#M674</link>
      <description>&lt;P&gt;any help from netapp tech engineer¿?&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 06:56:25 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/api-protocols-file-security-permissions-and-missing-SID/m-p/452538#M674</guid>
      <dc:creator>josem</dc:creator>
      <dc:date>2024-05-06T06:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: /api/protocols/file-security/permissions and missing SID</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/api-protocols-file-security-permissions-and-missing-SID/m-p/453295#M682</link>
      <description>&lt;P&gt;Refresh?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 06:47:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/api-protocols-file-security-permissions-and-missing-SID/m-p/453295#M682</guid>
      <dc:creator>josem</dc:creator>
      <dc:date>2024-06-19T06:47:24Z</dc:date>
    </item>
  </channel>
</rss>

