Powershell script for locating final pastime date of user

Copper Contributor

I wish to have a weekly script to run to find out who has not logged in to Microsoft Teams and not had any activity for last 1 week. how to find this. i searched the teams usage activity report which is a manual thing to do or through Graph api where they are on demand reports we have to run when required.

 

 

but what i need is to have this as a script to check teams user activity and find any user who has not posted any activity in teams for last 1 week. This is mainly to check our company consultants who abscond abruptly but have teams licenses assigned to them. i don't want a longer period keeping the licenses unused. Any help would be appreciated.

0 Replies