Hello,
Starting from Adaxes 2023, you can register your Azure AD domain and use a built-in condition, If is inactive <period>. The condition is available in business rules, custom commands and scheduled tasks. It works for both on-premises AD and Azure AD users.