Microsoft Graph

Articles, views, and insights about the practical application of the Microsoft Graph APIs (including the Microsoft Graph PowerShell SDK) from Practical365.com

Latest Articles

Practical Graph: Working with Exchange Online Mailbox Data

Exchange Online mail folders and messages are a very important resource for Microsoft 365 tenants. This article discusses how to use cmdlets from the Microsoft Graph PowerShell SDK to retrieve information about mailbox folders and mail messages together with some performance tips for dealing with folders that store thousands of messages.

August 15, 2024

Practical Graph: Microsoft Launches Entra PowerShell Module

On June 27, 2024, Microsoft launched the preview of the Entra PowerShell module. Built on top of the Microsoft Graph PowerShell SDK, the new module helps organizations that still have PowerShell scripts based on the now-deprecated AzureAD and AzureADPreview modules. If you're in that situation, the Entra module might help. But I recommend using the Microsoft Graph PowerShell SDK instead.

July 1, 2024

Practical Graph: Find Ownerless and Memberless Groups with Graph APIs

Over time, it's likely that some of the groups in a Microsoft 365 tenant will fall into either the category of memberless groups or ownerless groups. Microsoft has a solution to manage ownerless Microsoft 365 groups, but not the other group types supports by the Graph. This article explains how to find and report memberless groups using the Get-MgGroup cmdlet.

June 19, 2024

Experimenting with PowerShell Batching and Parallel Execution

PowerShell Parallel Processing is a mechanism to speed the processing of large quantities of data. In this example, we discuss how to use parallel batches to fetch Entra ID account information using mailbox data to drive information retrieval. Although this is only a demonstration of a technique, it might help those who must process thousands of mailboxes or accounts and would like to do so more quickly.

June 12, 2024

Practical Graph: Creating and Updating Planner Tasks

In the past, we've described how to use PowerShell to report tasks in Planner plans. This article completes the circle by discussing how to create Planner tasks. The scenario used is synchronizing Microsoft 365 message center notifications to create tasks in a target plan. There are some interesting issues to discuss, like how to assign a label to a task.

March 19, 2024

Using Power Automate and Azure Automation to Manage the Lifecycle of SharePoint Sites

A key aspect of a well-managed Microsoft 365 environment is to ensure that SharePoint sites are removed when they are no longer needed. In this blog, Sean McAvinue explores how to combine relatively basic PowerShell and Azure Automation skills with Power Automate to create a clean, robust way to manage the lifecycle of SharePoint sites in your Microsoft 365 tenant.

November 14, 2023