AzureAD - User Licenses - Reprocess Programmatically

Henrique Carvalho 1 Reputation point
2021-02-07T16:57:17.797+00:00

Hi,

I'm assigning O365 Licenses to my users via an AAD Group with License assignment on it.
I noticed that some times, it takes a while for the user to take the license.

The AAD user UI has a "Reprocess " option on licenses tab. How can I do this programmatically?

Note: I know I can do this programmatically at Group level, but since the group has thousands of users, I would prefer to trigger it at user level.

Many thanks,
DD

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,928 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. VipulSparsh-MSFT 16,281 Reputation points Microsoft Employee
    2021-02-08T07:05:31.5+00:00

    @Henrique Carvalho The API used for this is a hidden API and not publicly supported. A browser trace shows that the reprocess options uses following API for the call:

    ![65217-image.png]1

    API : https://main.iam.ad.ext.azure.com/api/AccountSkus/User/{userID}/Reprocess

    You can use that against different users to perform the reprocess via something as PowerShell.


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.