Model
UserExpirationManager
Magento\Security\Model\UserExpirationManager
What it does
This class manages the expiration of temporary admin user accounts in Magento 2.
Developers use it to automatically deactivate expired admin users, invalidate their active sessions, and check if a specific user has expired.
It's primarily used by cron jobs to periodically clean up expired accounts and during login validation to prevent expired users from accessing the admin panel.
Public Methods
- deactivateExpiredUsers()
- deactivateExpiredUsersById()
- isUserExpired()