Skip to content

Add CLI for Microsoft 365 sample: get-disabled-or-inactive-user-accounts (#885)#965

Open
juandresrodca wants to merge 1 commit into
pnp:mainfrom
juandresrodca:feat/885-cli-m365-disabled-inactive-users
Open

Add CLI for Microsoft 365 sample: get-disabled-or-inactive-user-accounts (#885)#965
juandresrodca wants to merge 1 commit into
pnp:mainfrom
juandresrodca:feat/885-cli-m365-disabled-inactive-users

Conversation

@juandresrodca

Copy link
Copy Markdown

Summary

Contributes to #885 (goal 1: add a CLI for Microsoft 365 implementation to samples that currently only have PnP PowerShell).

Adds a CLI for Microsoft 365 using PowerShell tab to scripts/get-disabled-or-inactive-user-accounts, covering the same three discovery sources as the existing PnP PowerShell versions:

  1. Disabled accounts - Entra ID via Microsoft Graph (m365 request)
  2. Accounts hidden from the GAL - SharePoint People search (m365 spo search --sourceId)
  3. Inactive accounts - last interactive sign-in (m365 request against auditLogs/signIns)

Also updated

  • assets/sample.json: added CLI-FOR-MICROSOFT365 metadata, CLI command tags, CLI reference, contributor, and updateDateTime.

Commands were verified against the current CLI for Microsoft 365 documentation.

…ounts (pnp#885)

Adds a CLI for Microsoft 365 (PowerShell) implementation alongside the
existing PnP PowerShell versions, covering the same three discovery
sources: disabled accounts (Entra ID via Microsoft Graph), accounts
hidden from the GAL (SharePoint People search), and inactive accounts
by last interactive sign-in. Updates sample metadata, tags, references
and contributor list.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant