How do I Automate License provisioning for bulk users on daily or weekly basis?

Ehteshamuddin Syed 1 Reputation point
2021-07-07T21:18:04.977+00:00

Hi Team,
I am trying to find a way to automate license provisioning for daily user requests. Currently, we are using Power shell to manually run the script as it requires me to manually enter the credentials because it uses Connect-MsolService.

I would like to know if we already have an API script which provision licenses to the list of users from a .csv , also what all it will take me to use that APIs?

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 119.7K Reputation points MVP Volunteer Moderator
    2021-07-08T06:12:41.963+00:00

    You can use the Graph API, although the license operations therein are a bit more convoluted compared to good old MSOnline module: https://learn.microsoft.com/en-us/graph/api/user-assignlicense?view=graph-rest-1.0&tabs=http
    Alternatively, if you have AAD P1 license, look into group-based licensing: https://learn.microsoft.com/en-us/azure/active-directory/enterprise-users/licensing-groups-assign

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.