Forum Discussion
kiran bellala
Jul 19, 2018Brass Contributor
Guest Users governance - stale guest users
Hello All I want to reach out to community and ask how admins are managing and creating governance around Guest users (external users). In O 365 tenant users can invite non-tenant users to particip...
Sandra Boyd
Oct 02, 2018Copper Contributor
Does anyone have a Power Shell script that would provide a list of stale guest accounts with the last log in date for users who don't have a mailbox? External users who have been granted access to sites or documents in classic SharePoint sites and modern Team and Communication sites don't have mailboxes.
Joshua Bines
Apr 28, 2020Iron Contributor
Now you do... 🙂 https://github.com/JBines/Remove-StaleGuests
- AndrxApr 15, 2021Copper ContributorHi.
I want to remove inactive users for 14 days And export to csv.
I write:
Remove-StaleGuests.ps1 -InactiveTimeSpan 14 -ExportCSVPath guest.csv -RemoveInactiveGuests:$true
But then happens nothing.. all users are still exist.
For pending users it works:
Remove-StaleGuests.ps1 -InactiveTimeSpan 14 -ExportCSVPath guest.csv -RemoveExpiredGuests:$true
But for removing inactive doesn't. How does it work??- Joshua BinesApr 19, 2021Iron ContributorIf you could please add an issue in github and then we can triage the issue.