Skip to main content
1-Visitor
September 29, 2016
Question

Assigning and deleting permissions to Thingworx entities at object level using services

  • September 29, 2016
  • 4 replies
  • 2558 views

Hi All,

Is it possible to assign visibility permissions at object level in Thingworx? I mean, to each individual mashup/thing/thing template etc.?

Also, can we delete run time permissions which are already there to each individual mashup/thing/thing template etc.?

Appreciate your responses in this regard as soon as possible.

Thanks in advance.Developer Community​@

4 replies

1-Visitor
September 29, 2016

Yes you can define Visibility at object level.

Yes you can delete run time permissions which are already there.

5-Regular Member
October 3, 2016

Hi Indira Salem​,

As Carles mentioned; its possible.

Refer to following link for more details: Visibility in Organizations

Thanks,

Ankit Gupta

isalem1-VisitorAuthor
1-Visitor
October 4, 2016

Thanks for your responses Carles and Ankit. But I want those permissions to be assigned and deleted using services. I mean can you please share me the code for assigning visibility permissions at object level and deleting the already existing run time permissions at object level?

Thanks in advance.

1-Visitor
October 4, 2016

You should look at Code Snippets or "Me" section on Mashup Thing / ThingShape/ ThingTemplate service code editor, services like:

  • me.AddVisibilityPermission
  • me.DeleteVisibilityPermission
  • me.AddRunTimePermission
  • ... ( just search on "me" tab for permission )
  • ... ( just search on "Snippets" tab for permission )