cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Unable to add PropertyRead runtime permission into a new template by programming

htran-21
15-Moonstone

Unable to add PropertyRead runtime permission into a new template by programming

Hi,

 

The system complaints that "This entity does not support property permissions"

 

Exception:

Wrapped java.lang.Exception: This entity does not support property permissions Cause: This entity does not support property permissions

 

Here under is a code to simulate the case

 

 

var EntityServices = Resources['EntityServices']
var newTemplateName = 'TestThingTemplate'

if (ThingTemplates[newTemplateName]) EntityServices.DeleteThingTemplate({ name: newTemplateName })

EntityServices.CreateThingTemplate({name: newTemplateName, thingTemplateName: 'RemoteThing' }) ThingTemplates[newTemplateName].AddRunTimePermission({ principalType : "Group", principal : "Users", allow : true, type : "PropertyRead", resource : "*" })

 

 

My Bests,

Hung Tran

 

 

 

ACCEPTED SOLUTION

Accepted Solutions
htran-21
15-Moonstone
(To:htran-21)

Anyway, the Instance Runtime Permission should be implemented behind the scenes in order to keep the security scheme to be consistent and simple for use.

View solution in original post

2 REPLIES 2
htran-21
15-Moonstone
(To:htran-21)

Anyway, the Instance Runtime Permission should be implemented behind the scenes in order to keep the security scheme to be consistent and simple for use.

Announcements


Top Tags