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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Issue regarding System User Visibility to Thing template.

harpreetk
6-Contributor

Issue regarding System User Visibility to Thing template.

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?

 

ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

4 REPLIES 4

Hi,

 

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

 

Thank you,

Raluca Edu

harpreetk
6-Contributor
(To: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

harpreetk
6-Contributor
(To: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

Announcements


Top Tags