Expand my Community achievements bar.

AEM last login time

Avatar

Level 5

How to identify a user last logged in into AEM , In the given scenario AEM is connected with LDAP or IDP and the users are synced into AEM

My POV

Even if the users are authenticated in LDAP or IDP crx token will be created in AEM .
So can we try to get a valid crx token time as the last login time?
Please share which API can help to achieve this?

3 Replies

Avatar

Level 10

Hi,

AEM is REST based and does not have the concept of session. So there is no feature to track login or logout details.  Most of our customers use some kind of central authentication Ex- SSO hence no need arises to have such functionality built in.  However if needed you have the ability to implement such at a project level solution. Ex:- custom login modules or auth-handler by taking project specific constraints and requirements into account

// https://forums.adobe.com/thread/114566

Thanks,
Ratna Kumar.

Avatar

Level 5

Yes i do understand and i am not speaking about  request sessions.

How about crx token? as this will be unique for each instance and that will any way decide the user login validity 

Is there a way to know crx token created time along with it is properties with some API's

Avatar

Community Advisor

Hi,

 

Not sure if you already got it worked, just sharing below link which might help others in future

 

https://medium.com/tech-learnings/adobe-experience-manager-reporting-on-users-last-login-date-e20350...