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

Current User Service

ptc-6292144
3-Visitor

Current User Service

Hello,

Is there a service which can be run in a mashup to determine what user is currently signed in?

Thank you,

Mike

3 REPLIES 3
smanley
13-Aquamarine
(To:ptc-6292144)

Hi Michael,

Yes there is a way to get the current user using a service. You can use the

GetCurrentUser

code snippet in a service to return this information.


Thanks,

Saeed



smanley
13-Aquamarine
(To:ptc-6292144)

An alternative to using the snippet is to use the Keyword, principal, to retrieve the user that is executing a particular service.

Could you please provide an example? I would need to determine the user who is logged in via TW View and calling a service in Thingworx.

Top Tags