API to set/manage SPO Tenant properties?
Category
- [X] Question
- [ ] Typo
- [ ] Bug
- [ ] Additional article idea
Expected or Desired Behavior
The introduce of SharePoint Online Tenant properties is great, now we can have a centralized data storage for SPFx WebParts to use. However, it seems that the only way to manage the properties is thorough Office 365 CLI or Powershell.
Is there any REST API (or CSOM/JSON) to allow developers to manage tenant properties programmatically? If not, is there a plan for that?
Thanks!
Observed Behavior
Don't see any documentation about managing tenant properties with API.
Steps to Reproduce
Submission Guidelines
Thanks for your contribution! Sharing is caring.
Hi @matthong, I knew it was possible to manage tenant properties with CSOM but just like you, could not find any direct documentation for it. So I have written a quick blog post: https://www.vrdmn.com/2018/06/getset-sharepoint-online-tenant.html
Hope you find it useful.
Thank you @vman for sharing your blog post, it is useful. Also, base on your post, I found the web class in @pnp.sp library does have the method to manage the tenant properties. https://pnp.github.io/pnpjs/sp/tenant-properties.html.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues