2

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?

3

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) { ... });
4
  • @EliotHarper How to find the user from the tokens received in the requestedTokens function?
    – Gokul
    Jul 18 '17 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. Jul 18 '17 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
    Jul 19 '17 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
    Feb 5 '19 at 10:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.