Home

How to auto delete inactive members?

%3CLINGO-SUB%20id%3D%22lingo-sub-294060%22%20slang%3D%22en-US%22%3EHow%20to%20auto%20delete%20inactive%20members%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-294060%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3C%2FP%3E%3CP%3EOne%20thing%20that%20a%20member%20can%20leave%20a%20team%20-%20but%20how%20do%20I%20(prefer%20auto)%20clean%20up%20inactive%20users%20%2F%20orphaned%20users%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-294060%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHow-to%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETips%20%26amp%3B%20Tricks%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-294074%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20auto%20delete%20inactive%20members%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-294074%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20do%20you%20consider%20a%20user%20inactive%3F%20When%26nbsp%3Bthe%20user%20account%20is%26nbsp%3Bdisabled%20or%20after%20x%20number%20of%20days%20without%20a%20sign-in%3F%20I%20can%20see%20that%20the%20price%20for%20P2%20licenses%20can%20be%20high%20just%20for%20this%20function%20but%20you%20might%20find%20other%20features%20together%20with%20this%20worth%20the%20price.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EChecking%20if%20the%20user%20is%20active%20with%26nbsp%3B%3CSPAN%3EGet-MailboxStatistics%26nbsp%3Bis%20unreliable%20and%20also%20requires%20a%20user%20to%20have%20a%20mailbox.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-294072%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20auto%20delete%20inactive%20members%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-294072%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Taen%2C%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20could%20use%20Powershell%20to%20get%20a%20list%20of%20inactive%20users%20in%20Office%20365%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22http%3A%2F%2Fwww.itfunk.com%2F2017%2F01%2F27%2Fpowershell-to-find-inactive-user-accounts-in-office-365%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.itfunk.com%2F2017%2F01%2F27%2Fpowershell-to-find-inactive-user-accounts-in-office-365%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EOthers%20may%20have%20ideas%20of%20how%20you%20can%20get%20it%20directly%20through%20Powershell%20or%20by%20some%20other%20method.%20However%2C%20access%20review%20is%26nbsp%3Boptimal%20in%20terms%20of%20that's%20what%20it%20is%20designed%20for%20and%20in%20terms%20of%20monitoring%20access%20to%20specific%20applications%26nbsp%3Bit%20provides%20more%20granular%20management%20and%20better%20oversight.%20Adam%20is%20right%20here.%20The%20P2%20licence%20is%20%249%20per%20month%20US%20so%20this%20is%20a%20worthwhile%20investment%20to%20show%20what%20applications%20(including%20Teams)%20users%20are%20using%2C%20it%20identifies%20training%20needs%20quicker%2C%20distinguishes%20if%20someone%20has%20access%20to%20an%20application%20they%20shouldn't.%20It%20only%20needs%20to%20be%20given%20to%20the%20user%20who%20is%20performing%20the%20work.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-294067%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20auto%20delete%20inactive%20members%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-294067%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eand%20if%20there's%20no%20license%20for%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3EAzure%20AD%20Premium%20P2%3C%2FLI%3E%3CLI%3EEnterprise%20Mobility%20%2B%20Security%20(EMS)%20E5%20license%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewhat%20then%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-294065%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20auto%20delete%20inactive%20members%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-294065%22%20slang%3D%22en-US%22%3E%2B%201%20for%20access%20review%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-294063%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20auto%20delete%20inactive%20members%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-294063%22%20slang%3D%22en-US%22%3EHave%20a%20look%20at%20%E2%80%9Caccess%20review%E2%80%9D%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fgovernance%2Faccess-reviews-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fgovernance%2Faccess-reviews-overview%3C%2FA%3E%3C%2FLINGO-BODY%3E
Taen keren
Super Contributor

Hi 

One thing that a member can leave a team - but how do I (prefer auto) clean up inactive users / orphaned users ?

5 Replies
+ 1 for access review

Hi

 

and if there's no license for 

  • Azure AD Premium P2
  • Enterprise Mobility + Security (EMS) E5 license

 

what then?

Hi Taen,

You could use Powershell to get a list of inactive users in Office 365

http://www.itfunk.com/2017/01/27/powershell-to-find-inactive-user-accounts-in-office-365/

Others may have ideas of how you can get it directly through Powershell or by some other method. However, access review is optimal in terms of that's what it is designed for and in terms of monitoring access to specific applications it provides more granular management and better oversight. Adam is right here. The P2 licence is $9 per month US so this is a worthwhile investment to show what applications (including Teams) users are using, it identifies training needs quicker, distinguishes if someone has access to an application they shouldn't. It only needs to be given to the user who is performing the work.

Best, Chris

When do you consider a user inactive? When the user account is disabled or after x number of days without a sign-in? I can see that the price for P2 licenses can be high just for this function but you might find other features together with this worth the price.

 

Checking if the user is active with Get-MailboxStatistics is unreliable and also requires a user to have a mailbox.

 

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies