Just a short silly weekend scripting project to get started after the summer vacation.
This script counts how many GIF’s are used in each Microsoft Teams team, and give you the stats from top to bottom.
Take a look here if you don’t know how to get an access token for Graph API requests in PowerShell. Also, remember if your graph requests return more than a hundred objects, you will need to do another request for the next hundred.
Will updated code and write another blogpost on how to handle large number of objects in your requests.
Lee Ford beat me to it, so take a look at his post to handle large returns in requests: