Avatar of Christian Hans
Christian HansFlag for United States of America

asked on 

O365 - Unassign service within enterprise license

In Office 365, Microsoft Teams is included in the E1, E3 and E5 licenses by default.

I only want to enable Microsoft Teams for a certain subset of employees until we have a better understanding and can manage it before allowing the entire company to use it.

1. Does anyone have a powershell script to unassigned the Microsoft Teams feature for all O365 users, leaving all other licenses in tack?
2. Once unassigned, is there another command to enable the Microsoft Teams feature for those few users we select to test with?

Thanks in advance.
PowershellMicrosoft 365

Avatar of undefined
Last Comment
Todd Nelson
Avatar of Aard Vark
Aard Vark
Flag of Australia image

Over the past year or so I have used a few methods all based around on-prem AD group membership for licensing the various features.

I started with the PowerShell using the MSOL cmdlets to manage this and am now using the Azure Graph API via PowerShell to do this, but it is all part of a much larger identity management solution so I can't really put it up here. That said, Microsoft have recently introduced licensing templates for O365. Check out:

https://blogs.technet.microsoft.com/enterprisemobility/2017/02/22/announcing-the-public-preview-of-azure-ad-group-based-license-management-for-office-365-and-more/

I think this will natively in O365 achieve what you are looking to do. I certainly wish this was around at the start, but our solutions are now well entrenched to change.
ASKER CERTIFIED SOLUTION
Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Aard Vark
Aard Vark
Flag of Australia image

Group-based licensing requires Azure AD Premium subscription though, so it's not ideal solution.

Azure AD is only required during preview, and you can just spin up a trial to play with in the mean time (Worst case you're looking at $1/month for an Azure  AD Basic subscription). But yes right now you do need AAD, though it will be opened to Enterprise E3 subscriptions too without needing an Azure AD subscription when it goes general availability which won't be too far off.
SOLUTION
Avatar of Todd Nelson
Todd Nelson
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Powershell
Powershell

Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework. PowerShell provides full access to the Component Object Model (COM) and Windows Management Instrumentation (WMI), enabling administrators to perform administrative tasks on both local and remote Windows systems as well as WS-Management and Common Information Model (CIM) enabling management of remote Linux systems and network devices.

27K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo