Project

O365Essentials

A module that helps to manage some tasks on Office 365/Azure via undocumented API

Stars144
Forks24
Open issues13
PowerShell Gallery downloads29834
Releasev1.0.2
Language: PowerShell Updated: 2026-04-02T21:43:18.0000000+00:00

Curated Examples

Review admin role membership

Use O365Essentials to review selected Microsoft 365 administrative role members.

This pattern is useful when you want a quick tenant admin review without changing settings.

It is adapted from Examples/GetO365ADRoles.ps1.

Example

Import-Module O365Essentials

Connect-O365Admin -Verbose

$roles = Get-O365AzureADRolesMember -RoleName 'Global Administrator', 'Global Reader', 'Security Reader'

$roles.'Global Administrator' | Format-Table
$roles.'Global Reader' | Format-Table
$roles.'Security Reader' | Format-Table

What this demonstrates

  • connecting interactively
  • selecting a small set of high-value roles
  • keeping the command read-only

Source