<?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 What is the best way to run a command as a specific user in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/What-is-the-best-way-to-run-a-command-as-a-specific-user/m-p/99187#M17492</link>
    <description>&lt;P&gt;I'm calling a workflow from rest.&amp;nbsp; (From VMware VCO)&amp;nbsp;&amp;nbsp; When I call the workflow from the WFA portal,&amp;nbsp; the powershell is executed as the user who is running the service.&amp;nbsp; When I run the workflow via a REST call, I get errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;re Permissions - BASE] ### Command 'Grant Share Permissions - BASE' ###&lt;BR /&gt;13:58:32.148 ERROR&amp;nbsp; [Grant Share Permissions - BASE] Command failed for Workflow 'Create a Clustered Data ONTAP Qtree CIFS Share - mszafran' with error : \\SVM_MSZAFRAN\qtreevco2: Access is denied.&lt;BR /&gt;13:58:32.152 INFO&amp;nbsp; [Grant Share Permissions - BASE] ***** Workflow Execution Failed *****&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the offending commands:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;icacls \\$NetbiosServer\$ShareName /grant $DomainName\"$RWGroupName":"(OI)(CI)M"&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;icacls \\$NetbiosServer\$ShareName /grant $DomainName\"$ROGroupName":"(OI)(CI)RX"&lt;BR /&gt;icacls \\$NetbiosServer\$ShareName /remove "Everyone"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is best to do here?&amp;nbsp;&amp;nbsp;&amp;nbsp; Is there a powershell equivalent of sudo or something that is spiffy for this?&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jun 2025 05:18:12 GMT</pubDate>
    <dc:creator>mszafran</dc:creator>
    <dc:date>2025-06-05T05:18:12Z</dc:date>
    <item>
      <title>What is the best way to run a command as a specific user</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/What-is-the-best-way-to-run-a-command-as-a-specific-user/m-p/99187#M17492</link>
      <description>&lt;P&gt;I'm calling a workflow from rest.&amp;nbsp; (From VMware VCO)&amp;nbsp;&amp;nbsp; When I call the workflow from the WFA portal,&amp;nbsp; the powershell is executed as the user who is running the service.&amp;nbsp; When I run the workflow via a REST call, I get errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;re Permissions - BASE] ### Command 'Grant Share Permissions - BASE' ###&lt;BR /&gt;13:58:32.148 ERROR&amp;nbsp; [Grant Share Permissions - BASE] Command failed for Workflow 'Create a Clustered Data ONTAP Qtree CIFS Share - mszafran' with error : \\SVM_MSZAFRAN\qtreevco2: Access is denied.&lt;BR /&gt;13:58:32.152 INFO&amp;nbsp; [Grant Share Permissions - BASE] ***** Workflow Execution Failed *****&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the offending commands:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;icacls \\$NetbiosServer\$ShareName /grant $DomainName\"$RWGroupName":"(OI)(CI)M"&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;icacls \\$NetbiosServer\$ShareName /grant $DomainName\"$ROGroupName":"(OI)(CI)RX"&lt;BR /&gt;icacls \\$NetbiosServer\$ShareName /remove "Everyone"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is best to do here?&amp;nbsp;&amp;nbsp;&amp;nbsp; Is there a powershell equivalent of sudo or something that is spiffy for this?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:18:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/What-is-the-best-way-to-run-a-command-as-a-specific-user/m-p/99187#M17492</guid>
      <dc:creator>mszafran</dc:creator>
      <dc:date>2025-06-05T05:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to run a command as a specific user</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/What-is-the-best-way-to-run-a-command-as-a-specific-user/m-p/99203#M17499</link>
      <description>&lt;P&gt;Lesson Learned:&amp;nbsp;&amp;nbsp; Make sure all the variables you want to get from the user that you need for the workflow to complete are marked mandatory.&amp;nbsp;&amp;nbsp; I had a typo in one of the my really long and descriptive variable names.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2015 13:45:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/What-is-the-best-way-to-run-a-command-as-a-specific-user/m-p/99203#M17499</guid>
      <dc:creator>mszafran</dc:creator>
      <dc:date>2015-01-13T13:45:44Z</dc:date>
    </item>
  </channel>
</rss>

