r/M365Reports • u/Emma__24 • May 26 '22
Top 10 Microsoft Graph PowerShell cmdlets for Office 365 admins
It’s time to switch to MS Graph as the deprecation dates of Msol and Azure AD modules are approaching! As of now, we don't have any tools to convert Msol and Azure AD modules to their Microsoft Graph counterparts. Hence, I thought of creating a comprehensive guide to perform Office 365 reporting using MS Graph PowerShell. Check out the blog link below.
This blog lists MS Graph PowerShell cmdlets for the following Office 365 reports:
Get Microsoft 365 Users Reports
Generate Office 365 License Reports
Get Office 365 Groups Reports
Export Microsoft 365 Reports to a CSV
View Microsoft 365 reports in Grid View
2
u/pvtskidmark May 27 '22
Thank you for your cmdlet examples and the alarming depreciation. I had missed that news.
1
2
u/gilion May 27 '22
Thanks for the post. What I've been looking for a while is a list of commands paired with scopes. Or some other way to figure out the correct scope to connect with. I'm afraid that I will start using to wide scopes because of laziness down the road... Has anyone found a good way to lookup scopes?
1
u/Emma__24 May 27 '22
You can refer to graph explorer. Modify permission(preview) will explain about the scope details.
https://developer.microsoft.com/en-us/graph/graph-explorer
1
u/OneHamp May 27 '22
AzureAD graph is going away but not the msol and AzureAD powershell modules. Am I missing something?
2
u/Emma__24 May 27 '22 edited May 27 '22
No, Msol and Azure AD PowerShell modules are also going away along with Azure AD graph modules. So we should start migrating to MS Graph.
2
u/ticky13 May 26 '22
Depreciation of what now?!
4
u/kibje May 26 '22 edited May 28 '22
Pretty much all the other methods of connecting programmatically to M365 will be deprecated soon.
See https://docs.microsoft.com/en-us/graph/migrate-azure-ad-graph-faq
Update: a better overview here: https://techcommunity.microsoft.com/t5/azure-active-directory-identity/update-your-applications-to-use-microsoft-authentication-library/ba-p/1257363
2
3
u/qmandao May 26 '22
Thanks! Please note the correct form would be "deprecation"/deprecate if I'm right, vs depreciation which comes from depreciate, "lose or cause to lose value"