如果当前站点的基础o365组是公共的还是私有的,如何检入sharepoint spfx组件?

问题描述

是否可以通过spfx组件本身中的jsom进行检查?

否则,我将需要调用外部服务,而后者又将调用graph api,我试图避免这种情况。但是,如果要这样做,获取组ID或名称的最佳方法是什么?

谢谢。

解决方法

@塔拉斯,

我偶然发现了该物业,我认为它符合您的要求:

enter image description here

Request URL: https://abc.sharepoint.com/sites/testprivate/_api/web?$select=AllProperties&$expand=AllProperties

enter image description here

我还检查了Office 365公共组网站,它非常适合。

BR