1
votes

Goal: Return user services details like (OneDrive for Business, Outlook Online, Sharepoint Online, Calendar) from Office365 using Microsoft Graph Api.

I used this endpont:

https://graph.microsoft.com/v1.0/users/userId/licenseDetails

But that return all service plan.

Do you know how to return the services available to a user using Grap Api?

1

1 Answers

0
votes

License Details api contains information about a license assigned to a user, also with the servicePlans collection. If you don't want to see the service plans assigned with the license, you can use $select to filter it.

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

enter image description here

Update:

One license will have many service plans. For example, I have a Office 365 E3 license, I will got the following service plans. You can find the reference here.

enter image description here