Currently, Microsoft has not launched a feature to track when a user is online and offline.
You can currently only observe in Teams how many hours ago an offline user last used Teams.
To get this feature more quickly, you can send a feedback directly to Microsoft Feedback to add it in future updates.
Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future.
********************************************************************************************************* If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. *********************************************************************************************************