SOLVED
Home

Automatically Remove Licenses when an account is deactivated

%3CLINGO-SUB%20id%3D%22lingo-sub-699278%22%20slang%3D%22en-US%22%3EAutomatically%20Remove%20Licenses%20when%20an%20account%20is%20deactivated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-699278%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%3C%2FP%3E%3CP%3EWe%20run%20AD%20Connect%20sync%20what%20I%20am%20looking%20for%20is%20there%20a%20way%20to%20remove%20licences%20automatically%20from%20users%20when%20there%20account%20is%20disabled%3F%20Or%20does%20this%20mean%20that%20all%20data%20on%20exchange%20and%20One%20drive%20will%20be%20deleted%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-699278%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%20Administration%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Management%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-699289%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20Remove%20Licenses%20when%20an%20account%20is%20deactivated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-699289%22%20slang%3D%22en-US%22%3EHi%20%40Ian%20Maclauchlin%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThere%20has%20been%20a%20long%20running%20uservoice%20open%20for%20this%20here.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Foffice365.uservoice.com%2Fforums%2F273493-office-365-admin%2Fsuggestions%2F9297432-automatically-remove-o365-license-from-disabled-ad%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foffice365.uservoice.com%2Fforums%2F273493-office-365-admin%2Fsuggestions%2F9297432-automatically-remove-o365-license-from-disabled-ad%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EI%20would%20usually%20say%20vote%20for%20this%2C%20but%20this%20hasn't%20been%20picked%20up%20in%20a%20significant%20time%20as%20it%20was%20opened%20in%202015!%20This%20means%20its%20very%20low%20down%20on%20the%20priority%20list%20and%20may%20not%20be%20picked%20up%20for%20a%20long%20time.%20I%20have%20been%20asked%20periodically%20about%20it%20over%20the%20years.%3CBR%20%2F%3E%3CBR%20%2F%3ERemoving%20the%20licence%20does%20not%20automatically%20delete%20the%20data.%20When%20a%20user's%20license%20is%20removed%2C%20data%20that%20is%20associated%20with%20that%20user%20account%20is%20held%20for%2030%20days.%20After%20the%2030%20day%20grace%20period%2C%20the%20data%20is%20deleted%20and%20can't%20be%20recovered.%20Files%20that%20are%20saved%20in%20OneDrive%20or%20SharePoint%20Online%20are%20not%20deleted.%3CBR%20%2F%3E%3CBR%20%2F%3ESee%20article%20here%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice365%2Fadmin%2Fsubscriptions-and-billing%2Fremove-licenses-from-users%3Fview%3Do365-worldwide%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice365%2Fadmin%2Fsubscriptions-and-billing%2Fremove-licenses-from-users%3Fview%3Do365-worldwide%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EHope%20that%20answers%20your%20questions!%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-699338%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20Remove%20Licenses%20when%20an%20account%20is%20deactivated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-699338%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F169605%22%20target%3D%22_blank%22%3E%40Christopher%20Hoard%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGreat!!%20I%20will%20create%20a%20PowerShell%20script%20to%20run%20as%20part%20of%20our%20nightly%20admins%20cycle.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMany%20thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-699675%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20Remove%20Licenses%20when%20an%20account%20is%20deactivated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-699675%22%20slang%3D%22en-US%22%3EThat's%20partially%20correct...files%20stored%20in%20ODFB%20are%20going%20to%20be%20removed%20once%20the%20user%20is%20deleted%20from%20the%20AD%20that's%20the%20reason%20why%20the%20user's%20manager%20receives%20an%20e-mail%20to%20make%20a%20copy%20of%20the%20files%20of%20the%20disabled%20users....what%20you%20can%20do%20to%20keep%20also%20e-mail%20is%20to%20conver%20the%20user%20mailbox%20into%20a%20shared%20mailbox%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-699685%22%20slang%3D%22en-US%22%3ERe%3A%20Automatically%20Remove%20Licenses%20when%20an%20account%20is%20deactivated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-699685%22%20slang%3D%22en-US%22%3EYes%2C%20sorry%20Juan%20Carlos%20I%20factored%20in%20the%20ODFB%20as%20part%20of%20the%20process%20but%20didn%E2%80%99t%20mention%20it%20explicitly.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20for%20calling%20it%20out!%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3C%2FLINGO-BODY%3E
Highlighted
Ian Maclauchlan
Occasional Contributor

Hi all

We run AD Connect sync what I am looking for is there a way to remove licences automatically from users when there account is disabled? Or does this mean that all data on exchange and One drive will be deleted?

 

 

4 Replies
Highlighted
Solution
Hi @Ian Maclauchlin,

There has been a long running uservoice open for this here.

https://office365.uservoice.com/forums/273493-office-365-admin/suggestions/9297432-automatically-rem...

I would usually say vote for this, but this hasn't been picked up in a significant time as it was opened in 2015! This means its very low down on the priority list and may not be picked up for a long time. I have been asked periodically about it over the years.

Removing the licence does not automatically delete the data. When a user's license is removed, data that is associated with that user account is held for 30 days. After the 30 day grace period, the data is deleted and can't be recovered. Files that are saved in OneDrive or SharePoint Online are not deleted.

See article here

https://docs.microsoft.com/en-us/office365/admin/subscriptions-and-billing/remove-licenses-from-user...

Hope that answers your questions!

Best, Chris
Highlighted

Hi @Christopher Hoard 

 

Great!! I will create a PowerShell script to run as part of our nightly admins cycle.

 

Many thanks

Highlighted
That's partially correct...files stored in ODFB are going to be removed once the user is deleted from the AD that's the reason why the user's manager receives an e-mail to make a copy of the files of the disabled users....what you can do to keep also e-mail is to conver the user mailbox into a shared mailbox
Highlighted
Yes, sorry Juan Carlos I factored in the ODFB as part of the process but didn’t mention it explicitly.

Thanks for calling it out!

Best, Chris