Setup Group Based Licensing

The background here is that we all know it is pretty easy to go into the console and to add the relevant Office 365 licenses to a particular user. You can even script it if you are doing hundreds. But what it you could just put them in an AD group and have it...