[英]Microsoft Graph API - Check if user has a SharePoint license
I want to check whether a Microsoft user has a SharePoint online license given to him through the Microsoft Graph API.我想检查 Microsoft 用户是否拥有通过 Microsoft Graph API 授予他的 SharePoint 在线许可证。
I have found an API endpoint from where I can get all the licenses given to a user: List licenseDetails , but I want to get only the SharePoint license information.我找到了一个 API 端点,我可以从中获取授予用户的所有许可证: List licenseDetails ,但我只想获取 SharePoint 许可证信息。
You can get the Sharepoint license details by using this call您可以使用此调用获取 Sharepoint 许可证详细信息
https://graph.microsoft.com/v1.0/users/{userid}/licensedetails
and you need to search for servicePlanName property having value 'SHAREPOINTENTERPRISE' inside servicePlan array for Sharepoint Online.并且您需要在 Sharepoint Online 的 servicePlan 数组中搜索具有值“SHAREPOINTENTERPRISE”的 servicePlanName 属性。 Since filter is not supported as of now you need to write the code on your end and find it.由于目前不支持过滤器,因此您需要在自己的一端编写代码并找到它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.