在 SharePoint 2013 中針對 Office Web Apps 啟用授權和編輯

 

英文原文已於 2013 年 1 月 1 日星期二發佈

最近時運不濟,我需要多了解一點可在 Office Web Apps 中啟用編輯的授權模型。過程有點曲折,所以我想我只能在這裡快速說明其中的細節。簡言之,您想要:

  1. 為即將編輯 Office Web Apps 的人員建立新的授權對應。此授權對應是使用 New-SPUserLicenseMapping Cmdlet 所建立,可讓您能夠表示「此宣告」對應至「此權利」。權利清單是硬式編碼,而您可以利用 Get-SPUserLicense Cmdlet 取得。若要編輯 Office Web Apps,您會想要使用 OfficeWebAppsEdit 權利。「此宣告」可以是 Active Directory 群組或您的使用者即將擁有的任何其他宣告。在您建立對應之後,您會想要新增對應並開啟授權。如需更多詳細資訊,請參閱 https://technet.microsoft.com/zh-tw/library/jj219627.aspx
  2. 當您使用 -EditingEnabled 參數來建立 Office Web Apps 伺服器陣列時,也可以在此動作之後將此參數與 Set-OfficeWebAppsFarm Cmdlet 搭配使用。如需更多詳細資訊,請參閱 https://technet.microsoft.com/zh-tw/library/jj219436.aspx

因此,適用於此動作的完整 PowerShell 指令碼看起來如下 (假設在需要編輯宣告時,我使用的是名為 "OWA Editors" 之 AD 群組中的成員資格):

#附註:這裡使用的是 AD 安全性群組,因此我使用了 -SecurityGroup 參數
#如果我使用的是 FBA,則會改用 -Role 和 -RoleProvider 參數
#如果我使用的是 SAML,則會改用 -ClaimType、-OriginalProvider 及
#-Value 參數,或者您可以只將 -Claim 和 SPClaim 參數搭配使用
$a = New-SPUserLicenseMapping -SecurityGroup "OWA Editors" –License OfficeWebAppsEdit
$a | Add-SPUserLicenseMapping
Enable-SPUserLicensing
New-OfficeWebAppsFarm -Verbose -InternalUrl https://<machinename> -ExternalUrl https://<fully.qualified.machine.name> -CertificateName <FriendlyNameOfCertificateFromPreviousStep> -ClipartEnabled -TranslationEnable -EditingEnabled

如需更多關於在伺服器陣列上設定 Office Web Apps 的詳細資訊,您也可以在這裡參閱我先前的相關文章:https://blogs.msdn.com/b/sharepoint_cht/archive/2012/09/20/sharepoint-2013-office-web-apps.aspx

這是翻譯後的部落格文章。英文原文請參閱 Enabling Licensing and Editing for Office Web Apps in SharePoint 2013