<?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: User running the WorkFlow in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/User-running-the-WorkFlow/m-p/132814#M24115</link>
    <description>&lt;P&gt;Thanks Matt, I'll do it that way.&lt;/P&gt;&lt;P&gt;No idea why I didn't think about that...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2017 19:04:48 GMT</pubDate>
    <dc:creator>PHILIPALBERT</dc:creator>
    <dc:date>2017-07-14T19:04:48Z</dc:date>
    <item>
      <title>User running the WorkFlow</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/User-running-the-WorkFlow/m-p/132789#M24107</link>
      <description>&lt;P&gt;I'm having issues with access denied in one of my command.&lt;/P&gt;&lt;P&gt;How can I know the user being used to run the workflow?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's connecting to a NetApp Cluster, but the issue is when I'm trying to create a folder on a NAS volume using powershell. &amp;nbsp; (New-Item $newFolder-type directory)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Philip&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:51:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/User-running-the-WorkFlow/m-p/132789#M24107</guid>
      <dc:creator>PHILIPALBERT</dc:creator>
      <dc:date>2025-06-04T14:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: User running the WorkFlow</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/User-running-the-WorkFlow/m-p/132793#M24108</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/1820"&gt;@PHILIPALBERT&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;Please share your environment &lt;/FONT&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;and let us know how are you creating the folder and share the commandlet for the same.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Shruthi&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 06:39:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/User-running-the-WorkFlow/m-p/132793#M24108</guid>
      <dc:creator>shruthihr</dc:creator>
      <dc:date>2017-07-14T06:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: User running the WorkFlow</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/User-running-the-WorkFlow/m-p/132798#M24110</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/1820"&gt;@PHILIPALBERT&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It's connecting to a NetApp Cluster, but the issue is when I'm trying to create a folder on a NAS volume using powershell. &amp;nbsp; (New-Item $newFolder-type directory)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Workflows on the windows machine are executed as LocalSystem account ( the account with which the service WFA server is running ). This account may not have permission to create objects on all places.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What can you do?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You have some options.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. The cmdlet New-Item takes -Credential as a parameter. So provide a credential that has permission on the Nas share&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. You can start the WFA Server service as user account who has permission on the folder.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would suggest option 1, this is flexible and works in places where -credential is an option.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let me know how this worked for you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sinhaa&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 09:55:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/User-running-the-WorkFlow/m-p/132798#M24110</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2017-07-14T09:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: User running the WorkFlow</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/User-running-the-WorkFlow/m-p/132803#M24113</link>
      <description>&lt;P&gt;Hi Philip,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried using the New-NcDirectory cmdlet instead of the New-Item cmdlet? The advantage is that New-NcDirectory uses a native ZAPI call ("file-create-directory") and you are connecting over the management LIF (https) instead of a data LIF if attempting to access the CIFS share to create the directory. Here is the source code for the command as an example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Param(
   [Parameter(Mandatory = $True, HelpMessage = "The name or IP Address of the cluster")]
   [String]$ClusterName,
   [Parameter(Mandatory = $True, HelpMessage = "The name of the vserver")]
   [String]$VserverName,
   [Parameter(Mandatory = $True, HelpMessage = "The path of the directory to create. '/vol/' will be appended to the start of the path if not specified.")]
   [String]$Path,
   [Parameter(Mandatory = $True, HelpMessage = "The permissions to assign to the directory")]
   [String]$Permission,
   [Parameter(Mandatory = $False, HelpMessage = "The maximum number of ZAPI retry attempts")]
   [Int]$ZapiRetryCount
)
#'------------------------------------------------------------------------------
#'Connect to the cluster
#'------------------------------------------------------------------------------
Connect-WFACluster $ClusterName
#'------------------------------------------------------------------------------
#'Set the command to create the directory.
#'------------------------------------------------------------------------------
If(-Not($Path.StartsWith("/vol/"))){
   If($Path.StartsWith("/")){
      [String]$p    = $Path.substring(1, ($Path.length -1))
      [String]$Path = "/vol/$p"
   }Else{
      [String]$Path = "/vol/$Path"
   }
}
[String]$command = "New-NcDirectory -Path ""$Path"" -Permission $Permission "
If($ZapiRetryCount){
   [String]$command += "-ZapiRetryCount $ZapiRetryCount "
}
[String]$command += "-VserverContext $VserverName -ErrorAction Stop"
#'------------------------------------------------------------------------------
#'Create the directory.
#'------------------------------------------------------------------------------
Try{
   Invoke-Expression -Command $command -ErrorAction Stop
   Get-WFALogger -Info -Message "Executed Command`: $command"
   Get-WFALogger -Info -Message "Created directory ""$Path"" on vserver ""$VserverName"""
}Catch{
   Get-WFALogger -Info -Message $("Failed Executing Command`: $command. Error " + $_.Exception.Message)
   Throw "Failed creating Directory ""$Path"" on vserver ""$VserverName"""
}
#'------------------------------------------------------------------------------&lt;/PRE&gt;&lt;P&gt;Example output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/7411iF3E2397A0A47F50A/image-size/original?v=1.0&amp;amp;px=-1" alt="wfa1.png" title="wfa1.png" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From an NTFS perspecitve that will create a folder that has everyone full control access. EG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;C:\&amp;gt;icacls \\vserver1\cifs_data_001$\test2
\\vserver1\cifs_data_001$\test2 Everyone:(I)(F)
                                Everyone:(I)(OI)(CI)(IO)(F)

Successfully processed 1 files; Failed processing 0 files&lt;/PRE&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 10:59:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/User-running-the-WorkFlow/m-p/132803#M24113</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2017-07-14T10:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: User running the WorkFlow</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/User-running-the-WorkFlow/m-p/132814#M24115</link>
      <description>&lt;P&gt;Thanks Matt, I'll do it that way.&lt;/P&gt;&lt;P&gt;No idea why I didn't think about that...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 19:04:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/User-running-the-WorkFlow/m-p/132814#M24115</guid>
      <dc:creator>PHILIPALBERT</dc:creator>
      <dc:date>2017-07-14T19:04:48Z</dc:date>
    </item>
  </channel>
</rss>

