We've built an app for HubExchange and retrieve the user that has authenticated with the app in the decoded JWT payload. This is all fine.

However, with a Custom Activity, Journey Builder uses the Endpoint URL that has been defined in AppCenter (for the Custom Activity) and doesn't use JWT so we don't know which ExactTarget user is interacting with Journey Builder.

Is there a method that we can use to get the current user from Journey Builder?

1 Answer 1


If you look at the Postmonger events, "requestTokens" and "requestedTokens" you should be able to pull out this context information.

connection.on('requestedTokens', function(tokens) { ... });
  • @EliotHarper How to find the user from the tokens received in the requestedTokens function?
    – Gokul
    Commented Jul 18, 2017 at 14:00
  • I can't recall, that was a couple of years ago and I don't have access to that code now. But I do remember that we were able to retrieve the user context from this Postmonger event. Commented Jul 18, 2017 at 19:28
  • @EliotHarper, I found there is an API to retrieve the UserContext using the token. But, do you know any way to get the user context using Postmonger without calling the API?
    – Gokul
    Commented Jul 19, 2017 at 7:52
  • @EliotHarper I'm trying to get the current logged in user's email address requestedTokens provides just the userId any ideas on how to approach? Here is my original question. salesforce.stackexchange.com/questions/249109/…
    – Ranga
    Commented Feb 5, 2019 at 10:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .