Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
I am facing an issue where I applied Organization containing the System User Visibility permission to a Thing template which is inheriting Generic Thing. I am still getting the error that template does not exists.
Is System User visibility does not work with the Thing Templates?
Solved! Go to Solution.
Hi,
It is necessary to give permissions for your user to Template/s also.
You can use Collection Things/Templates and give visibility to all of the entities, after you can restrict access with Design Time and Run Time permissions.
Hope it helps,
Raluca Edu
Hi,
Please can you explain the context? And what Thingworx version you are using?
Thank you,
Raluca Edu
Hi Raluca ,
I am using Thingworx 8.5.0-b12.
Below is the sample service code which I am tying to execute:
var thingParams = {
name: "TestThing",
description: "test thing",
thingTemplateName: "Thing Template Name"
};
Resources["EntityServices"].CreateThing(thingParams);
Getting below error even if I give Visibility permission to System User for this template.
Thing Template ["Thing Template Name"] does not exist.
If I give visibility permission for the thing template to the user who is accessing this API, then error does not appear.
Thanks,
Harpreet
Hi,
It is necessary to give permissions for your user to Template/s also.
You can use Collection Things/Templates and give visibility to all of the entities, after you can restrict access with Design Time and Run Time permissions.
Hope it helps,
Raluca Edu
Hi Raluca,
This make sense. I have to give permission for user to template and it worked.
Thanks for your help.
Regards,
Harpreet