Skip to Content
0
Oct 19, 2022 at 04:52 AM

How to get current user (Customer Model) in ASM

686 Views

Hi,

I am trying to get the current customer for whom the ASM agent has started the session, tried below few OOTB services but nothing worked.

userService.getCurrentUser();
assistedServiceService.getAsmSession().getEmulatedCustomer()

I am using Spartacus ASM with Hybris 2011.

Thanks,