【问题标题】:How do I retrieve the SharePoint Modern site's (Team sites and Communication sites) classification property via Graph API?如何通过图形 API 检索 SharePoint 现代网站(团队网站和通信网站)的分类属性?
【发布时间】:2021-04-21 11:44:27
【问题描述】:

如何通过 Graph API 检索 SharePoint Modern 网站(团队网站和通信网站)的分类属性?

    I've tried /groups endpoint but it only returns the team sites properties, Communications sites are not listed in groups so how do I get those properties in Graph API?

【问题讨论】:

    标签: sharepoint microsoft-graph-api office365 sharepoint-online azure-ad-graph-api


    【解决方案1】:

    对于通信网站,它们没有连接 Microsoft 365 组。因此 /groups 端点仅适用于团队网站。

    使用 Graph API,我认为不可能获得通信网站的分类属性。您可以使用 SharePoint Rest API 来获取该属性。使用以下端点:/_api/site/Classification

    https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-site-classification

    【讨论】:

    • 如果我的回答对你有帮助,你可以接受 :)
    • 我可以将 Sharepoint REST API 用于生产目的吗?它比 Graph API 更好吗?
    • 是的,你可以。而 SharePoint Rest API 仅用于 SharePoint。您可以参考:docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/…
    猜你喜欢
    • 2022-01-01
    • 1970-01-01
    • 2017-08-19
    • 2011-04-17
    • 1970-01-01
    • 2019-05-12
    • 1970-01-01
    • 1970-01-01
    • 2013-05-27
    相关资源
    最近更新 更多