Automate Microsoft License assignment
Let us squeeze this lemon to automate as much as possible of the tedious work regarding the administration of a Dynamics 365 Customer Engagement or PowerApps.
The most natural tedious work to automate with the most significant impact will be the license assignment if you ask me, so let us explore how to automate this by looking at what is built into Azure Active Directory
When done with the below steps, you only need AD group access role rather than Microsoft Office 365 Admin to add a license to a user.
Step 1 – How to Automate License Assignment
- Start with log in to Azure portal https://portal.azure.com/ and navigate to Azure Active Directory and open up Groups section https://portal.azure.com/#blade/Microsoft_AAD_IAM/GroupsManagementMenuBlade/AllGroups and click the + “New Group.”
- Create a new Security Group by giving it a name and description
- Open the newly created group
- Navigate to the “Licenses” section and click “+ Assign.”
- Click “configure Required Settings” and select the “Product license” to related to AD Group
- Click “Assignment Options” to add sub-license sections if needed. Click “Assign”
- That is it.. if a User is added to this new Group the user will automatically have the selected security role assigned… Click “Member” and add a user.
For details read, see Microsoft documentation:
See here how I did it and if it works…spoiler alert, it actually works: