Category Archives: Azure AD

Limiting access to Office 365 by country

Quietly, Microsoft has released (a preview version of the) country-based controls for Conditional Access. While this is technically¬†a minor addition, the ability to block logins to Office 365 or other cloud applications based on the location of the user has … Continue reading

Posted in Azure AD, Office 365 | 1 Comment

AzureAD PowerShell brings support for federation in version 2.0.1.17 (Preview)

It took Microsoft several years since the release of the Azure AD PowerShell module to address the issue with the missing federation-related cmdlets. Now, with the 2.0.1.17 version of the Azure AD Preview PowerShell module we can finally manage federation. … Continue reading

Posted in Azure AD, Office 365 | Leave a comment

Script to remove user(s) from all groups in Office 365

Often times when a user leaves the company, or for whatever other reason, you are tasked with making sure said user is removed as member from any and all groups. In the Office 365 world, this means going over each … Continue reading

Posted in Azure AD, Exchange Online, Office 365, PowerShell | Leave a comment

Login events in the Office 365 Audit log for the “Unknown” principal

Reviewing the Office 365 Audit log is one of the recommendations you will often find in any resource that focuses on Security and compliance. One such example is the Securing privileged access for hybrid and cloud deployments in Azure AD¬†article. … Continue reading

Posted in Azure AD, Office 365 | Leave a comment

Decode JWT access and id tokens via PowerShell

JSON web tokens or JWTs are commonly used in modern websites and apps and Azure AD/Office 365 is no exception in this regard. Both the OAuth 2.0 and the OIDC protocols used by Azure AD issue some type of a … Continue reading

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