<?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 workflow permissions in ExtremeCloud IQ- Site Engine Management Center</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-permissions/m-p/82751#M9100</link>
    <description>I have written a workflow which works when I run it manually as an "XIQ-Operator" user.&lt;BR /&gt;It fails when it runs as a scheduled job because:&lt;BR /&gt;IOError: (13, 'Permission denied', u'/usr/local/Extreme_Networks/NetSight/appdata/logs/scripting/NetSight Server/WAP_port_has_1_or_less_VLAN_report-2022-06-13_17-31-44.txt')&lt;BR /&gt;When I run the job it writes to 'my' user directory:&lt;BR /&gt;/usr/local/Extreme_Networks/NetSight/appdata/logs/scripting/&lt;STRONG&gt;user_name&lt;/STRONG&gt;/WAP_port_has_1_or_less_VLAN_report-2022-06-13_17-31-44.txt&lt;BR /&gt;presumably because the job gets run by "NetSight Server" when scheduled.&lt;BR /&gt;&lt;BR /&gt;I can't see why the permissions are wrong.&amp;nbsp; The directory has the same persmissions as other user directories, and it does have files inside that look like they have been created by other workflows.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any ideas?&lt;BR /&gt;thanks in advance,</description>
    <pubDate>Tue, 14 Jun 2022 10:59:15 GMT</pubDate>
    <dc:creator>bar</dc:creator>
    <dc:date>2022-06-14T10:59:15Z</dc:date>
    <item>
      <title>workflow permissions</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-permissions/m-p/82751#M9100</link>
      <description>I have written a workflow which works when I run it manually as an "XIQ-Operator" user.&lt;BR /&gt;It fails when it runs as a scheduled job because:&lt;BR /&gt;IOError: (13, 'Permission denied', u'/usr/local/Extreme_Networks/NetSight/appdata/logs/scripting/NetSight Server/WAP_port_has_1_or_less_VLAN_report-2022-06-13_17-31-44.txt')&lt;BR /&gt;When I run the job it writes to 'my' user directory:&lt;BR /&gt;/usr/local/Extreme_Networks/NetSight/appdata/logs/scripting/&lt;STRONG&gt;user_name&lt;/STRONG&gt;/WAP_port_has_1_or_less_VLAN_report-2022-06-13_17-31-44.txt&lt;BR /&gt;presumably because the job gets run by "NetSight Server" when scheduled.&lt;BR /&gt;&lt;BR /&gt;I can't see why the permissions are wrong.&amp;nbsp; The directory has the same persmissions as other user directories, and it does have files inside that look like they have been created by other workflows.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any ideas?&lt;BR /&gt;thanks in advance,</description>
      <pubDate>Tue, 14 Jun 2022 10:59:15 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-permissions/m-p/82751#M9100</guid>
      <dc:creator>bar</dc:creator>
      <dc:date>2022-06-14T10:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: workflow permissions</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-permissions/m-p/82752#M9101</link>
      <description>The problem was that the path was being created in the script by using the user name variable:&lt;BR /&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;userName = emc_vars["userName"]
    
wf_name=emc_vars["workflowName"].replace(' ','_')
wf_dateTime=time.strftime('%Y-%m-%d_%H-%M-%S',time.localtime(int(emc_vars["workflowUpdatedDateTime"])/1000))
    
    
output_dir = os.path.join("/usr/local/Extreme_Networks/NetSight/appdata/logs/scripting/",userName)​&lt;/CODE&gt;&lt;/PRE&gt;
The user that runs the scheduled jobs is "NetSight Server" with a space!&lt;BR /&gt;The associated directory is NetSight_Server with an underscore.&lt;BR /&gt;&lt;BR /&gt;I've hard coded the path for now to get around the problem.&lt;BR /&gt;&lt;BR /&gt;regards,</description>
      <pubDate>Wed, 15 Jun 2022 10:34:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-permissions/m-p/82752#M9101</guid>
      <dc:creator>bar</dc:creator>
      <dc:date>2022-06-15T10:34:00Z</dc:date>
    </item>
  </channel>
</rss>

