简体   繁体   English

Microsoft Graph API - 检查用户是否拥有 SharePoint 许可证

[英]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.

相关问题 Microsoft Graph API 过滤器 SharePoint 按用户创建的列表项 - Microsoft Graph API Filter SharePoint List Items By CreatedBy User 是否可以在打开“读取用户创建的项目”的情况下通过 Microsoft Graph Api 检索所有 SharePoint 列表项目? - Can I retrieve all the SharePoint list items vis Microsoft Graph Api with 'Read items that were created by the user' turned on? Microsoft Graph API中与SharePoint相关的所有终结点是什么? - What are all the endpoints in the Microsoft Graph API that are relevant for SharePoint? Microsoft Graph API。获取用户活动 - Microsoft Graph API. Getting user activity 测试用户是否使用Graph API安装了应用程序 - Test if user has application installed with Graph API 利用Azure Graph API进行SharePoint Online用户管理 - Utilize Azure Graph API for SharePoint Online User management Microsoft Graph Sendmail API 错误 - 错误无效用户 - Microsoft Graph Sendmail API error- Error invalid user Microsoft Graph API - 管理员同意更新用户日历 - Microsoft Graph API - Administrator Consent to update User Calendar Python 微软图 api - Python microsoft graph api 如何使用Microsoft Graph API通过自定义列值查找SharePoint文档 - How to find SharePoint documents by custom column value using Microsoft Graph API
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM