Category Archives: Graph API

Reporting on group membership for Azure AD devices

Now that we have device-based licensing for Office available to enterprise customers as well, adding device objects to Azure AD groups will become more common. The need to report on group membership for device objects will also arise. Neither the … Continue reading

Posted in Azure AD, Graph API, Microsoft 365, Office 365, PowerShell | Leave a comment

Toggle Azure AD Security Defaults on or off programmatically

Continuing our exploration of the different policies objects exposed under the /policies Graph API endpoint, in this article we will discuss how to get the current state of the Security defaults feature, and change it as needed. But first, a … Continue reading

Posted in Azure AD, Graph API, Microsoft 365, Office 365, PowerShell | 1 Comment

Block MSOnline PowerShell access for your tenant

One of the recent additions to the AzureAD (Preview) PowerShell module and the corresponding Graph API endpoints is the ability to configure “policy” objects within the tenant. In all fairness, “policies” aren’t something new, as they have been used for … Continue reading

Posted in Azure AD, Graph API, Microsoft 365, Office 365, PowerShell | 1 Comment

Remove sharing permissions on all files in users’ OneDrive for Business

A while back I posted a “proof of concept” article/script about enumerating all shared files across your Office 365/OneDrive for Business environment. The script used the Graph API endpoints to get a list of users within your tenant, then for … Continue reading

Posted in Graph API, Office 365, OneDrive for Business, PowerShell | Leave a comment

Graph API adds support for $count and $search query parameters

This year’s Build conference seems to be run under the “back to basics” moto, and we’ve seen some monumental improvements being announced, such as CTRL+F support for Teams (!) and similarly, a basic search query support for the Graph API. … Continue reading

Posted in Azure AD, Graph API, Office 365 | 1 Comment