<?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: Get list of all folders and subfolders permissions in a netapp with millions of folders in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-list-of-all-folders-and-subfolders-permissions-in-a-netapp-with-millions-of/m-p/161998#M6287</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not aware of a good way except of these two interfaces (perhaps also the same command via ZAPI/new ONTAP API).&lt;/P&gt;&lt;P&gt;The other things I would have try are:&lt;/P&gt;&lt;P&gt;1. to robocopy the folder-structure-only into a VM and try to run it locally (to avoid network latencies on the queries)&lt;/P&gt;&lt;P&gt;2. be sure to have small latency to AD and enough processing capacity on it as well&lt;/P&gt;&lt;P&gt;3. use filters on the get-acl to only include non-inherited permissions - so again you'll fewer queries to AD.&lt;/P&gt;&lt;P&gt;4. try to use another method to query the SMB. Maybe also try without translating the SIDs and doing it later based on your own index &lt;A href="https://www.reddit.com/r/PowerShell/comments/69181h/getacl_is_looking_up_sids/" target="_blank" rel="noopener"&gt;https://www.reddit.com/r/PowerShell/comments/69181h/getacl_is_looking_up_sids/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's of-course commercial tools that generate folders audit and allow you to act on it. you can consider using their tools instead of developing your own. I also mentioned it as for my experience, Varonis for example do their scan via SMB, and it can take a day or two for a 10TB share to get scanned (on an AFF).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2020 20:55:17 GMT</pubDate>
    <dc:creator>GidonMarcus</dc:creator>
    <dc:date>2020-12-10T20:55:17Z</dc:date>
    <item>
      <title>Get list of all folders and subfolders permissions in a netapp with millions of folders</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-list-of-all-folders-and-subfolders-permissions-in-a-netapp-with-millions-of/m-p/161990#M6286</link>
      <description>&lt;P&gt;I need to get a list of all shares and folder/subfolders along NTFS permissions (user and permission) in a netapp with millions of folders.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know you can use this command and it will return permissions for one folder you specify&lt;/P&gt;&lt;P&gt;vserver security file-directory show -path /marketing -expand-mask true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I need to do a report of a netapp that has 1 million of folders/subfolders so traversing folders and invoking this command folder by folder will take so many hours.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By now i have been doing this with standard windows APIs to list folders and subfolders and get-acl permission per folder but&amp;nbsp; as i said it is too slow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any file where this info is stored or a way to query&amp;nbsp;security file-directory to report all subfolders ? or other way like in windows you can use ntfs walker/journal or similar to query ntfs metada and get all file names/dir in the filesystem more efficient and quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:42:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-list-of-all-folders-and-subfolders-permissions-in-a-netapp-with-millions-of/m-p/161990#M6286</guid>
      <dc:creator>AlbertoGonzalez</dc:creator>
      <dc:date>2025-06-04T10:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of all folders and subfolders permissions in a netapp with millions of folders</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-list-of-all-folders-and-subfolders-permissions-in-a-netapp-with-millions-of/m-p/161998#M6287</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not aware of a good way except of these two interfaces (perhaps also the same command via ZAPI/new ONTAP API).&lt;/P&gt;&lt;P&gt;The other things I would have try are:&lt;/P&gt;&lt;P&gt;1. to robocopy the folder-structure-only into a VM and try to run it locally (to avoid network latencies on the queries)&lt;/P&gt;&lt;P&gt;2. be sure to have small latency to AD and enough processing capacity on it as well&lt;/P&gt;&lt;P&gt;3. use filters on the get-acl to only include non-inherited permissions - so again you'll fewer queries to AD.&lt;/P&gt;&lt;P&gt;4. try to use another method to query the SMB. Maybe also try without translating the SIDs and doing it later based on your own index &lt;A href="https://www.reddit.com/r/PowerShell/comments/69181h/getacl_is_looking_up_sids/" target="_blank" rel="noopener"&gt;https://www.reddit.com/r/PowerShell/comments/69181h/getacl_is_looking_up_sids/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's of-course commercial tools that generate folders audit and allow you to act on it. you can consider using their tools instead of developing your own. I also mentioned it as for my experience, Varonis for example do their scan via SMB, and it can take a day or two for a 10TB share to get scanned (on an AFF).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 20:55:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-list-of-all-folders-and-subfolders-permissions-in-a-netapp-with-millions-of/m-p/161998#M6287</guid>
      <dc:creator>GidonMarcus</dc:creator>
      <dc:date>2020-12-10T20:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of all folders and subfolders permissions in a netapp with millions of folders</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-list-of-all-folders-and-subfolders-permissions-in-a-netapp-with-millions-of/m-p/162000#M6288</link>
      <description>&lt;P&gt;ONTAP does not store this information in a file. You'd have to query it via Powershell or via icacls.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 18:16:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-list-of-all-folders-and-subfolders-permissions-in-a-netapp-with-millions-of/m-p/162000#M6288</guid>
      <dc:creator>parisi</dc:creator>
      <dc:date>2020-12-10T18:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of all folders and subfolders permissions in a netapp with millions of folders</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-list-of-all-folders-and-subfolders-permissions-in-a-netapp-with-millions-of/m-p/163821#M6339</link>
      <description>&lt;P&gt;But in large systems with millions of folders and files walking through all shares and subfolder is very slow process and difficult to keep in sync. Also you need a user than can browse all shares and folders and files that is quite difficult case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be great if you can provide an api or file to get all through ontap.&lt;/P&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 12:23:11 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-list-of-all-folders-and-subfolders-permissions-in-a-netapp-with-millions-of/m-p/163821#M6339</guid>
      <dc:creator>AlbertoGonzalez</dc:creator>
      <dc:date>2021-02-09T12:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of all folders and subfolders permissions in a netapp with millions of folders</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-list-of-all-folders-and-subfolders-permissions-in-a-netapp-with-millions-of/m-p/164436#M6350</link>
      <description>&lt;P&gt;If you trying to copy with NTFS permissions, have you looked into XCP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://xcp.netapp.com/" target="_blank"&gt;https://xcp.netapp.com/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 19:00:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-list-of-all-folders-and-subfolders-permissions-in-a-netapp-with-millions-of/m-p/164436#M6350</guid>
      <dc:creator>Thoppay</dc:creator>
      <dc:date>2021-02-25T19:00:32Z</dc:date>
    </item>
  </channel>
</rss>

