Skip to main content
1-Visitor
February 14, 2020
Solved

Issue regarding System User Visibility to Thing template.

  • February 14, 2020
  • 1 reply
  • 1450 views

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?

 

Best answer by raluca_edu

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

1 reply

raluca_edu
17-Peridot
February 17, 2020

Hi,

 

Please can you explain the context? And what Thingworx version you are using?

 

Thank you,

Raluca Edu

harpreetk1-VisitorAuthor
1-Visitor
February 17, 2020

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

raluca_edu
17-Peridot
February 17, 2020

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