Licensing in o365
Licensing via PowerShell (group-based licensing is still in public preview and companies like mine with 500k+ user base its difficult to purchasep1 or p2 for everyone.) for an enterprise having 500K+ users is not good enough. especially when a change of role requires license removal or change.
AssignedLicenses is an available attribute in Azure AD. Not sure if it is possible to make that attribute available under target attributes in AAD. so companies can att license skuid in on prem directory and when synced to cloud user object will have that license assigned. Further, more attributes will be available to disable or enable service plans within the license.
more attributes can be controlled by providing specific value to customers to put in on-prem dir.These values are pre-decided by Microsoft telling the customer what service will be enabled and what services will be disabled if the particular value set.