Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to send notification email to users who are inactive for 90 days and deactivate them in AEM 6.5.

Avatar

Avatar
Level 1
movovijay05
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
movovijay05
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
movovijay05
Level 1

03-08-2020

Hi

 

We have created certain non SAML users and groups. In AEM 6.5 is there out of box ability to deactivate users/groups that are inactive for more than 90days. Also to send reminder emails prior to deactivating them.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 5
Employee
vanegi
Employee

Likes

392 likes

Total Posts

378 posts

Correct Reply

148 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile

Avatar
Give Back 5
Employee
vanegi
Employee

Likes

392 likes

Total Posts

378 posts

Correct Reply

148 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile
vanegi
Employee

03-08-2020

Hi @movovijay05,

You can get the list of all active tokens (logged in users) and expired tokens from [0]. This will list out the time when the token would be expired for a particular user.

 

[0]: http://<host:port>/system/console/tokenmgr

 

Sling creates a new session for every request, and closes it when the request is done. There is no jcr Session associated with a user session as such. 

 

When user request the site, sling back-end will instantiate a new session for it or using previously opened (Of cause this is a common case for application server). But a lot of opened sessions can impact performance therefore not active sessions must be closed. For close user session after inactivity we should:

 

1. Open configuration path:

/system/console/configMgr/org.apache.jackrabbit.oak.security.authentication.token.TokenConfigurationImpl

2. Set appropriate value for Token Expiration property (Expiration time of login tokens in ms.):

 

Capture.JPG

 

 

And to send reminders prior expiring the user, you can leverage Day CQ Mail Service for that. See https://helpx.adobe.com/in/experience-manager/6-3/sites/administering/using/notification.html.

 

 

Thanks!!

 

Answers (2)

Answers (2)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,428 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,428 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

04-08-2020

There is no out of the box utility available but you can achieve this by creating custom utility.

But you can utilize reporting feature https://docs.adobe.com/content/help/en/experience-manager-65/administering/operations/reporting.html

 

Avatar

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

232 likes

Total Posts

294 posts

Correct Reply

67 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

232 likes

Total Posts

294 posts

Correct Reply

67 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile
Shashi_Mulugu
MVP

04-08-2020

@movovijay05 The main challenge here is to find the list of inactive users. As far i know, there is no direct way we can do this. Please follow the below community post for finding the users, then you can write a scheduler which runs every week to check the inactive users and sends email before week of expiration (also enable SMTP configuration), and mark it with some flag, and write another/within same scheduler to delete inactive users after expiration date reached.

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-active-user-in-aem-6-3...