cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect whether a asm agent has emulated which custromer user session?

abhinavsingh11
Participant
0 Kudos

Hi,

How to detect whether a asm agent has emulated which custromer user session? We have a requirement where we have to check which customer has been emulated by asm agent and then fetch some properties from customer database and set it in session How can we achieve this programmatically?

Accepted Solutions (0)

Answers (1)

Answers (1)

tylermac
Product and Topic Expert
Product and Topic Expert
0 Kudos

The user emulated can be retrieved by executing getUserService().setCurrentUser()

You may also want to look at extending https://download.hybris.com/api/5.7.0/commercesuite/de/hybris/platform/assistedservicefacades/impl/D... as you'll have access the user id there.