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.

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,570 questions
Microsoft Graph Azure AD API
Microsoft Graph Azure AD API
A Microsoft API that queries the user's profile, finds other users, manages organizational relationships, tracks assignments, or creates original solutions that incorporate existing organizational data.
208 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JamesTran-MSFT 27,751 Reputation points Microsoft Employee
    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.