<?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 does not have visibility permission for ContentLoaderFunctions in ThingWorx Developers</title>
    <link>https://community.ptc.com/t5/ThingWorx-Developers/SOLVED-User-does-not-have-visibility-permission-for/m-p/560449#M29769</link>
    <description>Cool.</description>
    <pubDate>Thu, 12 Jul 2018 16:34:46 GMT</pubDate>
    <dc:creator>Sathishkumar_C</dc:creator>
    <dc:date>2018-07-12T16:34:46Z</dc:date>
    <item>
      <title>[SOLVED] User does not have visibility permission for ContentLoaderFunctions</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/SOLVED-User-does-not-have-visibility-permission-for/m-p/560040#M29723</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i created a thing with a subscription in it. The subscription is configured with the Event DataChange and it is thrown.&lt;/P&gt;
&lt;P&gt;The Problem is, that in the script of the description in want to make a RESTFul API call with GET.&lt;/P&gt;
&lt;P&gt;I have the following code into the script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var params = {
	proxyScheme: undefined /* STRING */,
	headers: undefined /* JSON */,
	ignoreSSLErrors: true /* BOOLEAN */,
	useNTLM: false /* BOOLEAN */,
	workstation: undefined /* STRING */,
	useProxy: false /* BOOLEAN */,
	withCookies: undefined /* BOOLEAN */,
	proxyHost: undefined /* STRING */,
	url: 'http://localhost:5000' /* STRING */,
	timeout: undefined /* NUMBER */,
	appendHeader: undefined /* BOOLEAN */,
	proxyPort: undefined /* INTEGER */,
	password: undefined /* STRING */,
	domain: undefined /* STRING */,
	username: undefined /* STRING */
};

// result: JSON
var result = Resources["ContentLoaderFunctions"].GetJSON(params);
logger.warn(result);
logger.warn(result.W1);
logger.warn(me.ktid.ktid);

me.coolerValue1 = result.W1 + "/" + result.W2 + "/" + result.W3;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When the event is thrown i got the following error message in the logs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;User does not have visibility permission for ContentLoaderFunctions&lt;/PRE&gt;
&lt;P&gt;AND (anonymous)&lt;/P&gt;
&lt;PRE&gt;Execution error in service script [&amp;lt;THINGNAME&amp;gt;Event.DataChange:Property.ktid] : Wrapped java.lang.RuntimeException: Entity [ContentLoaderFunctions] does not exist Cause: Entity [ContentLoaderFunctions] does not exist&lt;/PRE&gt;
&lt;P&gt;What permissions are left here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;Hannes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 16:12:59 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/SOLVED-User-does-not-have-visibility-permission-for/m-p/560040#M29723</guid>
      <dc:creator>Hannes</dc:creator>
      <dc:date>2018-10-16T16:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: User does not have visibility permission for ContentLoaderFunctions</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/SOLVED-User-does-not-have-visibility-permission-for/m-p/560051#M29727</link>
      <description>&lt;P&gt;Add visibility and runtime permission to "Resources" to the user/organization on "SYSTEM" category. This may be the issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 07:34:37 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/SOLVED-User-does-not-have-visibility-permission-for/m-p/560051#M29727</guid>
      <dc:creator>Sathishkumar_C</dc:creator>
      <dc:date>2018-07-11T07:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: User does not have visibility permission for ContentLoaderFunctions</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/SOLVED-User-does-not-have-visibility-permission-for/m-p/560442#M29768</link>
      <description>&lt;P&gt;Hey, thanks for the fast response. Thats it! It worked when i added visbility and runtime permissions to the resource "ContentLoaderFunctions".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 16:12:32 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/SOLVED-User-does-not-have-visibility-permission-for/m-p/560442#M29768</guid>
      <dc:creator>Hannes</dc:creator>
      <dc:date>2018-07-12T16:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: User does not have visibility permission for ContentLoaderFunctions</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/SOLVED-User-does-not-have-visibility-permission-for/m-p/560449#M29769</link>
      <description>Cool.</description>
      <pubDate>Thu, 12 Jul 2018 16:34:46 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/SOLVED-User-does-not-have-visibility-permission-for/m-p/560449#M29769</guid>
      <dc:creator>Sathishkumar_C</dc:creator>
      <dc:date>2018-07-12T16:34:46Z</dc:date>
    </item>
  </channel>
</rss>

