<?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 Need help with Date Properties and Appkey permissions in ThingWorx Developers</title>
    <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Need-help-with-Date-Properties-and-Appkey-permissions/m-p/1042440#M70854</link>
    <description>&lt;P&gt;I have a mashup where im using the service GetProperties, in the Data Properties section i have the checkbox "&lt;SPAN&gt;Automatically update values when new values are available." selected.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I run my mashup passing the appkey through the link that access the mashup when I use my admin user it run properly the Data Propertie I checked, but when I change the appkey to my viewer user it doesnt work properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have given permission to the user in the Run Time permissions i checked every box as Allow, and in the visibility I inserted the user organization, for both the mashup and thing. Also in thr User Profile the option for Subsystem is also checked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I dont know what am I doing wrong and why when I change the appkey to my user that's not an admin the "Automatically update values when new values are available." doesnt work properly in my mashup. Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Nov 2025 17:14:05 GMT</pubDate>
    <dc:creator>GV_11098078</dc:creator>
    <dc:date>2025-11-07T17:14:05Z</dc:date>
    <item>
      <title>Need help with Date Properties and Appkey permissions</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Need-help-with-Date-Properties-and-Appkey-permissions/m-p/1042440#M70854</link>
      <description>&lt;P&gt;I have a mashup where im using the service GetProperties, in the Data Properties section i have the checkbox "&lt;SPAN&gt;Automatically update values when new values are available." selected.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I run my mashup passing the appkey through the link that access the mashup when I use my admin user it run properly the Data Propertie I checked, but when I change the appkey to my viewer user it doesnt work properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have given permission to the user in the Run Time permissions i checked every box as Allow, and in the visibility I inserted the user organization, for both the mashup and thing. Also in thr User Profile the option for Subsystem is also checked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I dont know what am I doing wrong and why when I change the appkey to my user that's not an admin the "Automatically update values when new values are available." doesnt work properly in my mashup. Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 17:14:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Need-help-with-Date-Properties-and-Appkey-permissions/m-p/1042440#M70854</guid>
      <dc:creator>GV_11098078</dc:creator>
      <dc:date>2025-11-07T17:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Date Properties and Appkey permissions</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Need-help-with-Date-Properties-and-Appkey-permissions/m-p/1042449#M70855</link>
      <description>&lt;P&gt;There is this article for the GetProperties permissions:&amp;nbsp;&lt;A href="https://www.ptc.com/en/support/article/CS322093?as=1" target="_blank"&gt;https://www.ptc.com/en/support/article/CS322093?as=1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's a little tricky as in the background it uses the BrowserGateway-ThingTemplate which needs permissions as well.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 18:04:30 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Need-help-with-Date-Properties-and-Appkey-permissions/m-p/1042449#M70855</guid>
      <dc:creator>nmutter</dc:creator>
      <dc:date>2025-11-07T18:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Date Properties and Appkey permissions</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Need-help-with-Date-Properties-and-Appkey-permissions/m-p/1042552#M70859</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/837581"&gt;@GV_11098078&lt;/a&gt;&amp;nbsp; there you need to provide some additional permissions to entity Browser Gateway.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the code you need to execute it with your usergroup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;// VISIBILITY PERMISSIONS

let projectVisibilityPermissionEntities = [
    // ThingTemplates["BrowserGateway"],
    Resources["AlertFunctions"],
    Resources["EntityServices"],
    Subsystems["PlatformSubsystem"],
    Subsystems["AlertProcessingSubsystem"],
    Subsystems["EventProcessingSubsystem"],

    Resources["RuntimeLocalizationFunctions"],
    Resources["CurrentSessionInfo"],
    Resources["InfoTableFunctions"],
    StyleThemes["PTC Convergence Theme"],
    LocalizationTables["de"],
];


projectVisibilityPermissionEntities.forEach((entity) =&amp;gt; {
    entity.AddVisibilityPermission({
        principal: "write your name of organization here",
        principalType: "Organization"
    });
});



// RUNTIME PERMISSIONS

// let c = {
//     Resources["EntityServices"]: ["GetClientApplicationKey"]
//     ThingTemplates["BrowserGateway"]: ["*"]
// };

// EntitiyServices: Visibility +  GetClientApplicationKey service

// BrowserGateway Instances RunTime: All Properties and services



Resources["EntityServices"].AddRunTimePermission({
	allow: true,
	principal: "write your usergroup here",
	principalType: "Group",
	resource: "GetClientApplicationKey",
	type: "ServiceInvoke"
});

Resources["RuntimeLocalizationFunctions"].AddRunTimePermission({
	allow: true,
	principal: "write your usergroup here",
	principalType: "Group",
	resource: "GetEffectiveToken",
	type: "ServiceInvoke"
});




ThingTemplates["BrowserGateway"].SetRunTimePermissionsAsJSON({
    permissions: getRuntimePermissionsJson("Users")
});

ThingTemplates["BrowserGateway"].SetInstanceRunTimePermissionsAsJSON({
    permissions: getRuntimePermissionsJson("Users")
});


Subsystems["EventProcessingSubsystem"].SetRunTimePermissionsAsJSON({
    permissions: getRuntimePermissionsJson("Users")
});

Subsystems["EventProcessingSubsystem"].SetInstanceRunTimePermissionsAsJSON({
    permissions: getRuntimePermissionsJson("Users")
});


function getRuntimePermissionsJson(groupName) {
    return {
        "permissions": [
            {
                "resourceName": "*",
                "EventSubscribe": [
                    {
                        "isPermitted": true,
                        "name": groupName,
                        "type": "Group"
                    }
                ],
                "PropertyWrite": [
                    {
                        "isPermitted": true,
                        "name": groupName,
                        "type": "Group"
                    }
                ],
                "PropertyRead": [
                    {
                        "isPermitted": true,
                        "name": groupName,
                        "type": "Group"
                    }
                ],
                "ServiceInvoke": [
                    {
                        "isPermitted": true,
                        "name": groupName,
                        "type": "Group"
                    }
                ],
                "EventInvoke": [
                    {
                        "isPermitted": true,
                        "name": groupName,
                        "type": "Group"
                    }
                ]
            }
        ]
    };
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 05:40:02 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Need-help-with-Date-Properties-and-Appkey-permissions/m-p/1042552#M70859</guid>
      <dc:creator>MA8731174</dc:creator>
      <dc:date>2025-11-10T05:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Date Properties and Appkey permissions</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Need-help-with-Date-Properties-and-Appkey-permissions/m-p/1042951#M70896</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/837581"&gt;@GV_11098078&lt;/a&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to see if you got the help you needed.&lt;/P&gt;
&lt;P&gt;If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.&lt;BR /&gt;Of course, if you have more to share on your issue, please pursue the conversation. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Anurag&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 04:03:13 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Need-help-with-Date-Properties-and-Appkey-permissions/m-p/1042951#M70896</guid>
      <dc:creator>anursingh</dc:creator>
      <dc:date>2025-11-12T04:03:13Z</dc:date>
    </item>
  </channel>
</rss>

