japan sharepointgroup study17_20141213
TRANSCRIPT
SharePoint Online(Office365) のテナントレベルのサイトコレクション等をアプリで操作する方法
野呂清二
(Microsoft MVP for Office365)http://www.exceedone.co.jp (株式会社エクシード・ワン)
http://tech.exceedone.co.jp (技術情報)
[東京] Japan SharePoint Group 勉強会#17
テナント一覧を取得してみよう
Office365テナント管理者(SharePoint)
サイトコレクション一覧
SharePoint用アプリを動かしてみよう
Office365テナント管理者(SharePoint)
サイトコレクション一覧Apps for SharePointのプロバイダーホスト型
プログラムをみてみようTenant tenant = new Tenant(adminContext);
SPOSitePropertiesEnumerable siteProp
= tenant.GetSiteProperties(0, true);
adminContext.Load(siteProp);
adminContext.ExecuteQuery();
foreach (SiteProperties sp in siteProp)
{
Uri spUri = new Uri(sp.Url);}
はまりポイント1
SharePoint Online – Tenantのdllが必要
Microsoft.Online.SharePoint.Client.Tenant.dll
SharePointの関数はTenatoのdllと同じ16系にすること
はまりポイント2
AppManifest.xml
以下を手で追加しなと動かない
AllowAppOnlyPolicy="true"
その他
SharePoint Onlineの全てのlistデータは全部とれました。
検証中
One driveのデータ
権限とユーザも全部取得できそう
WebPartsのプロパティとれたけど。
その他オブジェクト
参考文献 Apps for SharePoint(office365) でテナント
http://tech.exceedone.co.jp/office-app/apps-for-sharepoint-office365-tenant-site-collections/
操作できるのですね。いいサンプル見つけた。
Create Site Collections with CSOM in SharePoint Online
http://www.vrdmn.com/2014/03/create-site-collections-with-csom-in.html
Provisioning site collections using SP App model in on-premises with just CSOM
http://blogs.msdn.com/b/vesku/archive/2014/06/09/provisioning-site-collections-using-sp-app-
model-in-on-premises-with-just-csom.aspx
この資料の場所
How to get Tenant SiteCollection on SharePoint online(Office365)
http://tech.exceedone.co.jp/sharepoint/how-to-get-tenant-sitecollection-on-sharepoint-onlineoffice365/