7 Tips for Working with the Graph API in PowerShell

The Graph API is an amazingly powerful tool for both developers and admins to achieve some really cool things in Microsoft 365. There are multiple ways to leverage it using multiple languages but for somebody coming from an infrastructure background, that wants to manage, report or automate tasks in Microsoft 365, PowerShell makes the most …

Continue reading 7 Tips for Working with the Graph API in PowerShell

Script to Quickly Document your Conditional Access Policies

Conditional Access Policies are often critical to an organizations security configuration for Microsoft 365 and any other integrated apps that leverage Azure AD. I've been using this script for a while to document and 'snapshot' Conditional Access Policies in customer environments and thought I would share via GitHub. The script will gather each existing Conditional …

Continue reading Script to Quickly Document your Conditional Access Policies

Export Microsoft Planner Instances and Details Using Graph API and PowerShell

I recently had a requirement to include Planner instances in a tenant to tenant migration I was carrying out. The options for Planner migration are few and far between and the tooling we had in place was only scoped to migrate data. After some investigation, it was a job for Microsoft Graph API. I've begun …

Continue reading Export Microsoft Planner Instances and Details Using Graph API and PowerShell

Connect To Graph API Using PowerShell With Delegated Permissions

Previously on this blog, I have posted some Graph API / PowerShell examples. Most of these examples so far have used application permissions. I have a few examples planned over the next week or so which leverage Delegated Permissions which have a different authentication flow which we need to keep in mind when writing our …

Continue reading Connect To Graph API Using PowerShell With Delegated Permissions

OneDrive File Structure and Sharing Report – Graph API & PowerShell

I've previously posted a PowerShell script I put together to report the file and folder structure in OneDrive. This script used PowerShell and Graph API to loop through all files and folders and output the information to a CSV. I've recently had a requirement to add to that script, I didn't just need the file …

Continue reading OneDrive File Structure and Sharing Report – Graph API & PowerShell

Send Azure AD Guest User Invitations via Graph API

The built in controls in Azure AD for Guest User invitations are great for most cases. You can lock down guest invitations to specific users or groups and even specific recipient domains. When we look at more highly secure tenancies however, we often see requirements for approval flows or custom workflows to be associated with …

Continue reading Send Azure AD Guest User Invitations via Graph API

Graph API & PowerShell: Function To Use A Refresh Token To Renew An Access Token

In the process of updating my library of standard scripts and functions, I've taken the opportunity to change a lot of them to use Graph API rather than legacy EWS or PowerShell Modules. Using Graph helps to make them much more efficient and flexible and a lot of the functionality that I need is there …

Continue reading Graph API & PowerShell: Function To Use A Refresh Token To Renew An Access Token