I’ve done several Microsoft Office 365 project with together with some of our customers. In most implementations I was asked if there’s a way to assign Office 365 licenses (a.k.a. plans) to users based on their Active Directory group memberships.
Most companies have built their entire permission model on Microsoft Active Directory. With Active Directory Federation Services (ADFS) Microsoft offers a powerful and great tool for synchronizing user and group account from the customers on-premise environment into the Office 365 cloud.
Unfortunately there is no built-in technique to automatically assign licenses. Therefore I wrote a small PowerShell script to complete this task.