Speeding Up the Groups and Teams Activity Report by Replacing PowerShell with Graph API Calls

%3CLINGO-SUB%20id%3D%22lingo-sub-2430135%22%20slang%3D%22en-US%22%3ESpeeding%20Up%20the%20Groups%20and%20Teams%20Activity%20Report%20by%20Replacing%20PowerShell%20with%20Graph%20API%20Calls%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2430135%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESometimes%20it%E2%80%99s%20wise%20to%20give%20PowerShell%20scripts%20a%20turbo%20boost.%20This%20is%20certainly%20true%20for%20the%20Groups%20and%20Teams%20Activity%20report%20script%2C%20where%20a%20large%20amount%20of%20PowerShell%20processing%20has%20been%20replaced%20with%20speedy%20Microsoft%20Graph%20API%20calls.%20The%20result%20is%20much%20faster%20processing%2C%20which%20means%20that%20the%20script%20is%20more%20useful%20in%20large%20tenants.%20I%20still%20wouldn%E2%80%99t%20try%20to%20run%20it%20against%20100%2C000%20groups%2C%20but%20anything%20smaller%20should%20be%20OK.%20I%20think!%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Foffice365itpros.com%2F2021%2F06%2F09%2Fspeed-access-large-group-sets-graph%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foffice365itpros.com%2F2021%2F06%2F09%2Fspeed-access-large-group-sets-graph%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2430135%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Groups%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
MVP

 

Sometimes it’s wise to give PowerShell scripts a turbo boost. This is certainly true for the Groups and Teams Activity report script, where a large amount of PowerShell processing has been replaced with speedy Microsoft Graph API calls. The result is much faster processing, which means that the script is more useful in large tenants. I still wouldn’t try to run it against 100,000 groups, but anything smaller should be OK. I think!

https://office365itpros.com/2021/06/09/speed-access-large-group-sets-graph/

0 Replies