+ Start a Discussion
jai.sjai.s 

How to automatically Deactivate the Licenses, if those are not using from last one month?

Hi,
We have 1000 licenses in my org, in that few are not login regularly, I what to deactivate them automatically those are not using from last one month.

Please any one can suggest me, how can we achieve this?

Regards,
Shaik
David Catindoy 11David Catindoy 11
Try to use batch apex to evaluate the user last login every end of the month or depends to you. If the user is inactive for almost a month, then unchecked the active checkbox to set the user as inactive. After creating the batch apex, make sure that you create a scheduled job(s) to execute the batch apex at a specified time.