Problem statement
I want to find out the list of users that have not been active for the last two years so I can delete them. But we could not find the details in the tenant logs.
Solution
According to the log retention policy, you can go back for 30 days only. To check the logs over 30 days, we suggest you implement the log stream service to query older logs from the analytic service without hitting the management API.