Reporting on user logins in AEM | Community
Skip to main content
Sebastiane_Edberg_
Community Advisor
Community Advisor
January 20, 2022
Solved

Reporting on user logins in AEM

  • January 20, 2022
  • 1 reply
  • 1345 views

Hi there, found this post in the forum https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/adobe-experience-manager-reporting-on-user-s-last-login-date-aem/m-p/378880#M27248

 

but being new to aem i have a few questions, i put the java file in main\java\com\projectname\core\filters , is that correct? 

Anything else needed somewhere in a pom.xml to have it included in the build?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Anish-Sinha

Hi @sebastiane_edberg_ ,

To debug:

1. Start looking into logs, error.log file to see any error which is popping up in that class.

2 . Next you can go to "/system/console/components" and look for that component and see if it is in active state. You can see the name and make sure the component is deployed with your code.

There could be some permission issue with the system user you created, make sure you are providing read and write permission. Instead try giving jcr:all permission and test.

1 reply

Anish-Sinha
Adobe Employee
Adobe Employee
January 21, 2022

Hi @sebastiane_edberg_ , 

Here you don't have to make any entries in pom.xml in order to include the class in the build. You can just follow the steps mentioned in the article, which includes making some configuration for creating system user and then including the java class. No addition pom.xml is needed.

Sebastiane_Edberg_
Community Advisor
Community Advisor
January 21, 2022

@anish-sinha ok thank you, and I put it here: main\java\com\projectname\core\filters and then built the project, setup the service user as per instruction as well, but when logging in with a test user it does not write that last logged in property to the profile node. A little unsure where to start troubleshooting, can I see somewhere that this class is actually included now in the latest build?  

Anish-Sinha
Adobe Employee
Anish-SinhaAdobe EmployeeAccepted solution
Adobe Employee
January 21, 2022

Hi @sebastiane_edberg_ ,

To debug:

1. Start looking into logs, error.log file to see any error which is popping up in that class.

2 . Next you can go to "/system/console/components" and look for that component and see if it is in active state. You can see the name and make sure the component is deployed with your code.

There could be some permission issue with the system user you created, make sure you are providing read and write permission. Instead try giving jcr:all permission and test.