简体   繁体   中英

How do I retrieve the SharePoint Modern site's (Team sites and Communication sites) classification property via Graph API?

How do I retrieve the SharePoint Modern site's (Team sites and Communication sites) classification property via Graph API?

    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?

For communication sites, they do not have Microsoft 365 group connected. So /groups endpoint is only available for team sites.

Using Graph API, I don't think it's possible to get the classification property for Communication sites. You could use SharePoint Rest API to get the property. Use the below endpoint: /_api/site/Classification

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM