<?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 PowerShell Toolkit:  How to create a security descriptor from the DACLs of an existing dir in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Ontap-PowerShell-Toolkit-How-to-create-a-security-descriptor-from-the-DACLs-of/m-p/138369#M25160</link>
    <description>&lt;P&gt;I'm looking for the equivilent of&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;vserver security file-directory show &lt;/PRE&gt;
&lt;P&gt;That would create a SecurityDescriptor from inputted directory path&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2018 21:40:19 GMT</pubDate>
    <dc:creator>ChadPruden</dc:creator>
    <dc:date>2018-02-22T21:40:19Z</dc:date>
    <item>
      <title>Ontap PowerShell Toolkit:  How to create a security descriptor from the DACLs of an existing dir</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Ontap-PowerShell-Toolkit-How-to-create-a-security-descriptor-from-the-DACLs-of/m-p/127043#M22830</link>
      <description>&lt;P&gt;I'm looking for help on creating some powershell code that retrieves the current DACLs of a volume (or directory path) and stores it as a security descriptor. &amp;nbsp;I had come across this page on the web (&lt;A href="http://www.craig-tolley.co.uk/2016/02/09/assigning-permissions-to-a-volume-through-the-netapp-powershell-toolkit/" target="_blank"&gt;http://www.craig-tolley.co.uk/2016/02/09/assigning-permissions-to-a-volume-through-the-netapp-powershell-toolkit/&lt;/A&gt;) and it guided me through applying new permissions using the OnTap Powershell toolkit - however I cannot devise a way to modify the code so that an ACE can be removed or added to the ACL (Security Descriptor).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I presume it's some combination of&amp;nbsp;Get-NcFileDirectorySecurity and (New-NcFileDirectorySecurityNtfs or&amp;nbsp;Add-NcFileDirectorySecurityNtfsDacl). &amp;nbsp;I've investigated all of the&amp;nbsp;&lt;SPAN&gt;*NcFileDirectorySecurity* cmdlets, and only Get-NCFileDirectorySecurity appears to retrieve currently applied permissions, but it cannot be pipe'd into another cmdlet &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My larger objective is to build a WFA command that allows a user to add/remove an AD Group from their volume. &amp;nbsp; I've found the Powershell toolkit to be much quicker and straightforward than using (Get-Acl / Set-Acl)&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;&lt;P&gt;connect-NcController $ClusterName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$volName = "vol_test_3"&lt;BR /&gt;$Vserver = "svm-lab-a"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-NcFileDirectorySecurity -Path "/$volName" -VserverContext $Vserver | New-NcFileDirectorySecurityNtfs -SecurityDescriptor $VolName &amp;nbsp; &amp;nbsp; #this part doesn't work! &amp;nbsp; First cmdlet returns ACLs, but doesn't store it within SecurityDescriptor.&lt;/P&gt;&lt;P&gt;Get-NcFileDirectorySecurityNtfsDacl -SecurityDescriptor $volName -Vserver $vserver &amp;nbsp; #my output is {Administrators,Users,CREATOR OWNER, SYSTEM}. &amp;nbsp; I'm hoping to capture the DACLs of "/$VolName" - such as displayed by&amp;nbsp;(Get-NcFileDirectorySecurity -Path "/$volName" -VserverContext $Vserver).acls&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 19:09:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Ontap-PowerShell-Toolkit-How-to-create-a-security-descriptor-from-the-DACLs-of/m-p/127043#M22830</guid>
      <dc:creator>ChadPruden</dc:creator>
      <dc:date>2017-01-16T19:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ontap PowerShell Toolkit:  How to create a security descriptor from the DACLs of an existing dir</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Ontap-PowerShell-Toolkit-How-to-create-a-security-descriptor-from-the-DACLs-of/m-p/128754#M23114</link>
      <description>&lt;P&gt;Could you resolve this issue?&lt;/P&gt;&lt;P&gt;If not, do let us know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Abhi&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 04:01:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Ontap-PowerShell-Toolkit-How-to-create-a-security-descriptor-from-the-DACLs-of/m-p/128754#M23114</guid>
      <dc:creator>abhit</dc:creator>
      <dc:date>2017-03-07T04:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Ontap PowerShell Toolkit:  How to create a security descriptor from the DACLs of an existing dir</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Ontap-PowerShell-Toolkit-How-to-create-a-security-descriptor-from-the-DACLs-of/m-p/128766#M23123</link>
      <description>&lt;P&gt;I have not found a solution to this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My objective is to 'modify' existing NTFS directory ACLs using the Ontap Powershell module.&amp;nbsp; The alternative is to use &lt;STRONG&gt;cacls.exe /T /E /G user:perm&lt;/STRONG&gt;&amp;nbsp; or &lt;STRONG&gt;cacls.exe /T /E /R user:perm - &lt;/STRONG&gt;however that is much slower and prone to problems if the executing AD&amp;nbsp;user&amp;nbsp;doesn't have FULL_CONTROL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was not able to get the Powershell module commands to read existing DACLs into a security descriptor.&amp;nbsp; I will eventually be putting these commands into a WFA workflow.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 13:48:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Ontap-PowerShell-Toolkit-How-to-create-a-security-descriptor-from-the-DACLs-of/m-p/128766#M23123</guid>
      <dc:creator>ChadPruden</dc:creator>
      <dc:date>2017-03-07T13:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ontap PowerShell Toolkit:  How to create a security descriptor from the DACLs of an existing dir</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Ontap-PowerShell-Toolkit-How-to-create-a-security-descriptor-from-the-DACLs-of/m-p/138369#M25160</link>
      <description>&lt;P&gt;I'm looking for the equivilent of&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;vserver security file-directory show &lt;/PRE&gt;
&lt;P&gt;That would create a SecurityDescriptor from inputted directory path&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 21:40:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Ontap-PowerShell-Toolkit-How-to-create-a-security-descriptor-from-the-DACLs-of/m-p/138369#M25160</guid>
      <dc:creator>ChadPruden</dc:creator>
      <dc:date>2018-02-22T21:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ontap PowerShell Toolkit:  How to create a security descriptor from the DACLs of an existing dir</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Ontap-PowerShell-Toolkit-How-to-create-a-security-descriptor-from-the-DACLs-of/m-p/138370#M25161</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/55277"&gt;@ChadPruden&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll want to use the&amp;nbsp;Get-NcFileDirectorySecurity cmdlet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 21:44:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Ontap-PowerShell-Toolkit-How-to-create-a-security-descriptor-from-the-DACLs-of/m-p/138370#M25161</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2018-02-22T21:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ontap PowerShell Toolkit:  How to create a security descriptor from the DACLs of an existing dir</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Ontap-PowerShell-Toolkit-How-to-create-a-security-descriptor-from-the-DACLs-of/m-p/138371#M25162</link>
      <description>&lt;P&gt;Any tips on getting that into a SecurityDescriptor object that I could then modify and re-apply to the directory ACEs?&amp;nbsp; It appears the output is just TEXT and I'd have to parse it extensively.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;??                                     #Create Security Descriptor from the active ACEs&lt;BR /&gt;Add-NcFileDirectorySecurityNTFSDacl    #Modify Security Descriptor 
Set-NcFileDirectorySecurity            #Apply modified permissions&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Feb 2018 21:55:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Ontap-PowerShell-Toolkit-How-to-create-a-security-descriptor-from-the-DACLs-of/m-p/138371#M25162</guid>
      <dc:creator>ChadPruden</dc:creator>
      <dc:date>2018-02-22T21:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ontap PowerShell Toolkit:  How to create a security descriptor from the DACLs of an existing dir</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Ontap-PowerShell-Toolkit-How-to-create-a-security-descriptor-from-the-DACLs-of/m-p/166114#M28202</link>
      <description>&lt;P&gt;Did you ever find a solution for this using the powershell module?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 08:03:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Ontap-PowerShell-Toolkit-How-to-create-a-security-descriptor-from-the-DACLs-of/m-p/166114#M28202</guid>
      <dc:creator>sysir</dc:creator>
      <dc:date>2021-04-20T08:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Ontap PowerShell Toolkit:  How to create a security descriptor from the DACLs of an existing dir</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Ontap-PowerShell-Toolkit-How-to-create-a-security-descriptor-from-the-DACLs-of/m-p/460213#M28686</link>
      <description>&lt;P&gt;There has been no response to this query in 4 years.&amp;nbsp; Does this mean it is not possible with powershell?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My general question is ... Can you use powershell to add a permission to an existing set of permission for a folder?&amp;nbsp; &amp;nbsp;If so, does anyone have an example?&amp;nbsp; &amp;nbsp;9.15.1P3&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 15:48:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Ontap-PowerShell-Toolkit-How-to-create-a-security-descriptor-from-the-DACLs-of/m-p/460213#M28686</guid>
      <dc:creator>Kgarello</dc:creator>
      <dc:date>2025-04-21T15:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Ontap PowerShell Toolkit:  How to create a security descriptor from the DACLs of an existing dir</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Ontap-PowerShell-Toolkit-How-to-create-a-security-descriptor-from-the-DACLs-of/m-p/460283#M28687</link>
      <description>&lt;P&gt;I was able to work this out with the API:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/api/protocols/file-security/permissions/&lt;/SPAN&gt;&lt;SPAN&gt;$(&lt;/SPAN&gt;&lt;SPAN&gt;$SVMUuid&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;$(&lt;/SPAN&gt;&lt;SPAN&gt;$path&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;/acl&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Apr 2025 14:14:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Ontap-PowerShell-Toolkit-How-to-create-a-security-descriptor-from-the-DACLs-of/m-p/460283#M28687</guid>
      <dc:creator>Kgarello</dc:creator>
      <dc:date>2025-04-23T14:14:12Z</dc:date>
    </item>
  </channel>
</rss>

