GraphApi - List licenseDetails

David SIEMBIDA 1 Reputation point


I try the function List licenseDetails of the GraphApi Rest with my UserId;
I get several plan and services associated but when i checked licences on the Azure portal for one specific plan I have 1 licence missing.

In the Dynamics 365 Plan (PlanName = DYN365_ENTERPRISE_PLAN2)
In the List licenseDetails I don't find the license Dynamics 365 Customer Engagement Plan I see on the Azure portal.

Do you know why the return of the function is not complete ?

Best Regards,


Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,836 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,848 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JamesTran-MSFT 36,481 Reputation points Microsoft Employee

    @David SIEMBIDA
    Thank you for your post!

    When it comes to the List licenseDetails Graph API, you should be able to use the ?$select=servicePlans OData query parameter to help filter out your service plans and license details so you can see your Dynamics 365 Plan. You can also list by ID ?$select=id, to see the Product IDs for your licenses (i.e. Enterprise Mobility + Security E5).$select=id$select=servicePlans  


    If you're still unable to see your Dynamics 365 Plan, can you share a screenshot of what you're seeing?

    If you have any other questions, please let me know.
    Thank you for your time and patience throughout this issue.


    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.