You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creates a read-only report of Microsoft Entra guest users who have been inactive for more than a defined number of days.
369
+
370
+
By default, the script reports guest users inactive for more than **150 days** and exports the results to CSV, sorted from oldest sign-in to newest sign-in.
371
+
372
+
Will check Microsoft Entra guest users for things like:
373
+
374
+
- Guest account display name
375
+
- Guest user principal name
376
+
- Mail address
377
+
- Account enabled/disabled state
378
+
- External user state
379
+
- Created date
380
+
- Last successful sign-in date
381
+
- Last interactive sign-in date
382
+
- Last non-interactive sign-in date
383
+
- Effective last sign-in date
384
+
- Days since last sign-in
385
+
- Inactivity reason
386
+
- Recommended action
387
+
- Object ID
388
+
389
+
Guests with no sign-in date are included as **Never signed in** if the guest account was created before the inactivity threshold.
390
+
391
+
This script is useful for reviewing stale B2B/guest accounts before disabling or removing access.
392
+
393
+
The script does **not** block, delete, or modify users.
0 commit comments