Fetch the delta for the User Licenses on Azure using Graph Api

Riya Kaul 5 Reputation points
2023-07-28T07:01:54.9766667+00:00

I was using "[https://graph.microsoft.com/v1.0/users?$select=id,mail&$filter=assignedLicenses/any(u:u/skuId](https://graph.microsoft.com/v1.0/users?$select=id,mail&$filter=assignedLicenses/any(u:u/skuId"https://graph.microsoft.com/v1.0/users?$select=id,mail&$filter=assignedlicenses/any(u:u/skuid") eq 3b555118-da6a-4418-894f-7df1e2096870)". This was giving me all the users in this particular license. I just need the delta for it. How do I get that.

Basically me requirement is I need get the users in the Assigned Licenses so that I can build a dashboard over the Licenses and Users in it but I need the delta query for it. Basically if any change is made in license assignment.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,482 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,424 questions
{count} vote

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 43,016 Reputation points
    2023-07-28T09:47:43.69+00:00

    Hi @Riya Kaul

    Yes, you can perform delta queries on user-assigned licenses. Try running this API endpoint:

    https://graph.microsoft.com/v1.0/users/delta?$select=id,displayName,assignedLicenses,assignedPlans
    

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.


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.