Currently Logged in User
Is their an API or any other method to extract the currently logged in user from the portal using a custom form task ?
Best Answer
-
Geoff_Ross Cireson Consultant O.G.Hi @Waleed_Al_Mahmeed
Yes, the session.user object will contain the current logged on user. You can grab any property such as session.user.FirstName and you can use session.user.Id to return the object ID to plug into other API call to return anything related to current logged on user such as 'My Assets' or 'My Work Items'.
Happy coding.
Geoff5
Answers
Yes, the session.user object will contain the current logged on user. You can grab any property such as session.user.FirstName and you can use session.user.Id to return the object ID to plug into other API call to return anything related to current logged on user such as 'My Assets' or 'My Work Items'.
Happy coding.
Geoff