GraphApi - List licenseDetails

David SIEMBIDA 1 Reputation point
2022-09-08T13:20:32.173+00:00

Hello,

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,

David.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JamesTran-MSFT 37,226 Reputation points Microsoft Employee Moderator
    2022-09-09T23:21:57.01+00:00

    @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).

    https://graph.microsoft.com/v1.0/me/licenseDetails??$select=id  
    https://graph.microsoft.com/v1.0/me/licenseDetails?$select=servicePlans  
    

    240821-image.png

    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.


Your answer

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