Nested AD groups for Office 365 licensing with Azure AD Sync

This script adds licenses to users that are nested into serveral groups.You may want to add Office e3 licenses to all your part time workers. But you cannot just add the distribution group/security group to you license group and expect anything to happen because nested groups are

449 times
Add to favorites
Active Directory
E-mail Twitter Digg Facebook