Skip to main content
11-Garnet
November 5, 2019
Solved

SecurityContext for ThingworxEvent

  • November 5, 2019
  • 2 replies
  • 1070 views

Hello,
I'm in need to raise events (ThingworxEvent) from my extension. They are triggered from separate threads. My question is: what is preferred security-context: super-user (via SecurityContext.createSuperUserContext()), system-user (via SecurityContext.createSystemUserContext()) or something different? Is there a general rule?
Regards,
Marcus

Best answer by PaiChung

Thingworx by default users SuperUser so i think that would be one way to approach it.

Now if you are raising the events, it is BEST to create a specific Group/User or that with specific execution permissions (vs. Super user being able to do anything)

2 replies

PaiChung22-Sapphire IAnswer
22-Sapphire I
November 6, 2019

Thingworx by default users SuperUser so i think that would be one way to approach it.

Now if you are raising the events, it is BEST to create a specific Group/User or that with specific execution permissions (vs. Super user being able to do anything)

11-Garnet
November 7, 2019

Yes, you‘re right. That sounds plausible.

Thank you.