I've converted a user's mailbox to a shared mailbox. I now want to remove this license, but there is no option available. I'd like to use this license for a new employee.
Does anyone know how I can remove this license so it can be reused?
I've converted a user's mailbox to a shared mailbox. I now want to remove this license, but there is no option available. I'd like to use this license for a new employee.
Does anyone know how I can remove this license so it can be reused?
Just had to do this, and came across this question on my search for a solution.
Pre-requisites:
After installing the above and restarting, open PowerShell
If you used the link created by the installer, proceed to the next step, otherwise you need to import the Microsoft Online Services Module. At the PowerShell prompt:
Import-Module MSOnline
Now, assign your credentials to a variable (these are the login credentials you use to access Office365), a username/password box will appear for you:
$cred = Get-Credential
Connect to the online service and pass your credentials:
Connect-MsolService -Credential $cred
You will need to know the type of license assigned to your user. Find it with:
Get-MsolUser -UserPrincipalName user@example.com | Ft UserPrincipalName,DisplayName,Licenses
Where user@example.com is replaced with the user account you are looking for. This will return something like:
UserPrincipalName DisplayName Licenses
----------------- ----------- --------
user@example.com John Smith {example:LITEPACK}
(Where example:LITEPACK is your AccountSkuId)
Now, remove the license with:
Set-MsolUserLicense -UserPrincipalName user@example.com -RemoveLicenses "example:LITEPACK"
At the end of the above, you will still have the original user (with an unlicensed status). Do not remove the user, as that will delete your shared mailbox.
Open the converted user not via 'Groups->Shared mailboxes' view in O365 Admin Center but as regular user 'Users->Active users'.
In 'Active users' view you will find assigned licenses and will be able to reclaim them.
Converted user is still the user so don't try to delete it or you lost the user's shared mailbox.