Skip to content
FlowHubFluxonLab
Microsoft Teams
Calendar & Schedulingfree

Clean up Stale Entra B2B Guest Accounts with Microsoft Graph, Teams and Sharepoint

by Mychel GarzonUpdated Aug 2026
RequiresMicrosoft TeamsMicrosoft Teams
Share Post Share
ScWeekly Trigger at 8am MondayWeekly Trigger …SeSet Config ParametersSet Config Para…CoInitialize Pagination LoopInitialize Pagi…HRFetch Guest Page via URLFetch Guest Pag…CoAccumulate Guests from PageAccumulate Gues…IfIf More Pages AvailableIf More Pages A…SeSet Next URLCoFilter Stale Guest AccountsFilter Stale Gu…IfCheck Stale Guests PresenceCheck Stale Gue…Notify No Stale GuestsNotify No Stale…CoUnpack Stale Guests ArrayUnpack Stale Gu…SILoop Over Stale GuestsLoop Over Stale…HRFetch Guest ManagerFetch Guest Man…SePrepare Guest and Sponsor DataPrepare Guest a…Send Notification to SponsorSend Notificati…WaWait 72 Hours for ReplyWait 72 Hours f…HRDelete Stale Guest AccountDelete Stale Gu…IfCheck Deletion SuccessCheck Deletion …HRLog Deletion in SharePointLog Deletion in…Alert Deletion ErrorAlert Deletion …MeMerge Data for Next GuestMerge Data for …NOProceed to Next GuestProceed to Next…NOFinal Guest ProcessedFinal Guest Pro…Post Process Summary in TeamsPost Process Su…1234567891011121314151617181920212223242526
1/5
STEPS · 26
Runs on a schedule

On a schedule, finds stale Entra B2B guest accounts via Microsoft Graph, removes them, and reports the cleanup to Microsoft Teams.

Tags

cronadvancedMicrosoft TeamsEngineeringdiscoveredpending-review
Connects
microsoftteamsMicrosoft Teams
CategoryCalendar & Scheduling
Triggercron
Complexityadvanced
Nodes24
AddedJun 27, 2026