Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Sample aad-inactive-guest-delete #751

Merged
merged 4 commits into from
Oct 7, 2024

Conversation

petkir
Copy link
Contributor

@petkir petkir commented Oct 2, 2024

Delete inactive Guest User

The script will report inactive users for x days and provides an option to delete them.

Summary

This PowerShell script identifies and optionally deletes inactive guest users in Microsoft 365. It connects to Microsoft Graph, retrieves guest users, checks their last sign-in date, and lists those who have been inactive for a specified number of days. The script then prompts the user to confirm whether to delete these inactive users.

@pkbullock pkbullock merged commit 79cff9f into pnp:main Oct 7, 2024
@pkbullock
Copy link
Collaborator

Good morning @petkir - another really cool sample, thank you - this will be live shortly 🎉🎉🥳🥳

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.

2 participants