Skip to main content
1-Visitor
November 9, 2016
Question

Remote Thing - retrieve appkey/user which was used to connect device?

  • November 9, 2016
  • 1 reply
  • 4101 views

Is it possible to retrieve appKey or user which was used to connect RemoteThing (via EMS/SDK-based agent) in Thingworx?

I must have information which user connected particular device (devices are being connected with appKey generated for users).

1 reply

5-Regular Member
November 9, 2016

Jacek, there isn't a direct way at the moment to get historical data on which user/ appKey was authenticated to connect to a Remote Thing.

With that being said, one thing you can try is exporting your Remote Thing, open the xml, and look under the 'ConfigurationChange' section. That has historical information on when it was created, who modified it etc.

jacekgra1-VisitorAuthor
1-Visitor
November 9, 2016

Dear Aanjan,

Unfortuntally I will find only entity info there, not information about the credentials (appkey) that was used to connect the device. I am digging deeply in the platform but it seems that there is no way to achieve it besides broadcasting the appkey as a additional remote property directly from the agent.

I think it would be great improvement to introduce funcionality which could determine the appkey that was used in order to connect device via WS.

1-Visitor
November 9, 2016

Please don't broadcast the appKey as a property as potentially you can leak it to a user who has readonly rights on the Thing. Then that malicious user can use intercepted appKey to create new Things in the system or access services user should not have access to.