asUser in async event function

Hi @maximilian,
Sorry, that isn’t possible today. Only functions that are directly invoked by the user will contain the user context and therefor have the ability to utilise the asUser API function call. This means that webtriggers, scheduled triggers, product events and asynch events are restricted to asApp api calls only.
My team has been exploring introducing this feature for product events, but not yet asynch events.
I have raised [FRGE-805] - Ecosystem Jira for this based on your above feedback. Feel free to add any additional comments/feedback to this ticket in what you would like to see here.
Cheers,
Sam.

1 Like