sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

API to set/manage SPO Tenant properties?

Open matthong opened this issue 8 years ago • 3 comments

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.

matthong avatar Jun 15 '18 21:06 matthong

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.

vman avatar Jun 16 '18 13:06 vman

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.

matthong avatar Jun 18 '18 12:06 matthong

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

msft-github-bot avatar Jan 27 '20 12:01 msft-github-bot