Skip to main content
Nov 5, 2019 3:27 PM UTC
Solved

SecurityContext for ThingworxEvent

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

PaiChungAnswer
Nov 6, 2019 6:18 PM UTC

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

PaiChungAnswer
Nov 6, 2019 6:18 PM UTC

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)

Nov 7, 2019 5:37 AM UTC

Yes, you‘re right. That sounds plausible.

Thank you.