Aug 17 2022 08:58 AM
Hello,
So i need to update licencing for a list of users who migh have some plans disabled.
The users have E3/E5 with only EXO enabled. I need to enable all those other disabled plans, teams to be more specific.
In documentation i see how to disable plans to a existing user but i want the opposite. I want to enable plans to a existing user with a license. I tried to assign the license again but it does not overwrite.
Can you help please?
Thank you.
Aug 17 2022 10:03 AM
Aug 17 2022 10:12 AM
Hello @Harm_Veenstra
Thank you for your reply.
The thing is that the users already have a licence assigned directly to them.
Is there a way to assign the license again with all apps included for all users wirth powershell? I want to make sure all users have all apps and it seems that some doesn't.
The licenses are Office 365 E3 and Office 365 E5.
Thank you.
Aug 17 2022 10:16 AM
Aug 17 2022 10:24 AM
Aug 17 2022 10:26 AM - edited Aug 17 2022 10:33 AM
What you could do, is copy licenses from one user to the other:
$mgUser = Get-MgUser -UserId "exampleuser mail address"
Set-MgUserLicense -UserId "target user mail address" -AddLicenses $mgUser.AssignedLicenses -RemoveLicenses @()
https://docs.microsoft.com/en-us/microsoft-365/enterprise/assign-licenses-to-user-accounts-with-micr...
or use this to remove the plan completely from the user and re-add it again which should enable all features (You have to change the SKU name for the correct one and use the same SKU in the add and remove part
https://docs.microsoft.com/en-us/microsoft-365/enterprise/assign-licenses-to-user-accounts-with-micr...
Aug 17 2022 05:06 PM
Solution
Reflecting on @Harm_Veenstra's first post, if you have more than a handful of users, you're better off:
Continuing with the current direct assignment model only ensures this problem will come up again in the future.
Cheers,
Lain