在 SharePoint Server 中設定「我的網站」

適用于:yes-img-132013 yes-img-16 2016yes-img-192019 yes-img-se訂閱版本 no-img-sopMicrosoft 365 中的 SharePoint

本文說明如何在 SharePoint Server 中設定「我的網站」。 與其他 SharePoint Server 的工作一樣,有很多方法可以完成任務。 本文提供排序的工作,另含先決條件與程序,幫助您設定企業的「我的網站」。

在設定 我的網站 之前,請確定您了解 SharePoint Server 中的「我的網站」概觀在 SharePoint Server 中規劃「我的網站」中的概念與術語。

雖然不需要執行所有程序,但仍建議您依照所列順序執行,以獲得最佳成效。

必要條件

因為「我的網站」與 SharePoint Server 的其他服務應用程式與功能有相依關係,請在執行此工作的程序前,確認您已符合先決條件。

注意事項

[!附註] 「我的網站」由 Web 應用程式主控,且倚賴 User Profile Service 應用程式。 本節針對兩者皆有說明。 「我的網站」也需要使用 Managed Metadata Service 應用程式。 我們建議您也要有搜尋服務應用程式來搭配 「我的網站」使用,但這並非必要。 如果沒有 Search Service 應用程式,有些「我的網站」功能會受到影響。 如需詳細資訊,請參閱<在 SharePoint Server 中規劃「我的網站」>。

Web 應用程式

雖然可使用現有的 Web 應用程式,但為了達到最佳效能與安全性,建議您在專用的 Web 應用程式中建立「我的網站」主機網站集合。 如需詳細資訊,請參閱<在 SharePoint Server 中建立 web 應用程式

重要事項

如果在初始部署和設定期間建立「我的網站」主機網站集合,建議您不要使用它,因為它是在預設 Web 應用程式中建立的。 請刪除此網站集合,並建立主控「我的網站」專用的新 Web 應用程式。 然後在專用的 Web 應用程式中建立新「我的網站」主機網站集合。

User Profile Service 應用程式與設定檔同步

請確認您具備要用於「我的網站」的 User Profile Service 應用程式。

重要事項

雖然 [ 建立新的使用者設定檔服務應用程式 ] 對話方塊會在 [ 我的網站主機 URL ] 和 [個人網站位置 ] 區段中要求資訊,但在這項工作中,請移除任何預設值,並在您建立 User Profile Service 應用程式時將這些欄位保留空白。 Additionally, you can select any of the options in Site Naming Format. These settings will be configured separately later in this task.

注意事項

[!附註] 本節僅適用於 SharePoint Server 2013。 如果您想要同步處理儲存在 SharePoint Server 2013 設定檔資料庫中的使用者和群組設定檔資訊,以及儲存在目錄服務或商務系統中的設定檔資訊,請選擇性地設定設定檔同步處理。

建立「我的網站」主機網站集合

The My Site host site collection is a site collection that uses the Enterprise site template named My Site Host. This site collection must be created in the web application that you want to host My Sites. 一般而言,這個網站集合可以在 Web 應用程式的根路徑建立,不過只要在 Web 應用程式根目錄建立網站集合,就可以在 URL 中建立為更深入的明確包含受控路徑。 For more information about how to select the path for the My Site host collection, see Plan for My Sites in SharePoint Server.

建立「我的網站主機」網站集合

  1. 確認是否具備下列系統管理認證:
  • 要建立「我的網站」主機網站集合,您必須是執行 SharePoint 管理中心網站電腦的伺服器陣列管理員群組成員,或是「我的網站」相關服務的服務應用程式管理員。 如果您是服務應用程式管理員,您也必須有許可權在您專門用來裝載「我的網站」的 Web 應用程式中建立網站集合。
  1. 在管理中心按一下 [應用程式管理],然後按一下 [建立網站集合]

  2. On the Create Site Collection page, in the Web Application section, ensure that the selected web application is the web application that you want to host My Sites. 如果不是,請展開清單,然後按一下 [變更 Web 應用程式]。 在 [ 選取 Web 應用程式 ] 對話方塊中,選取不同的 Web 應用程式。

  3. 在 [標題與描述] 區段中,輸入網站集合的標題及描述。

  4. In the Web Site Address section, select the URL where you want this site collection created. Generally, you should use the default path (which is displayed as / in the user interface), which is the root of the web application. For more information about this path, see My Sites architecture in Plan for My Sites in SharePoint Server.

  5. 在 [範本選擇] 區段中,按一下 [企業] 索引標籤,然後按一下 [我的網站主機]

  6. 在 [ 主要網站集合管理員] 區段中,選擇性地在 [ 次要網站集合管理員 ] 區段中,輸入網 域\使用者名稱 格式的帳戶,以指定網站集合的系統管理員。

  7. Optionally, in the Quota Template section, select a quota template for the My Site host site collection. 此配額範本不會影響使用者為「我的網站」建立的個別網站集合。 For more information, see Planning for storage requirements in Plan for My Sites in SharePoint Server.

  8. Click OK. Copy this site collection URL for later reference.

將包含相對路徑的管理路徑加入 Web 應用程式

包含相對路徑的管理路徑就是個別網站集合 (為使用者的「我的網站」所建立) 下的路徑。 使用者第一次檢視使用者的「我的網站」時,便會建立網站集合。 此功能只有在自助網站架設也啟用時才能使用。 自助網站架設之啟用將在本文後段討論。

將包含相對路徑的管理路徑加入 Web 應用程式

  1. 確認是否具備下列系統管理認證:
  • 若要加入受管理路徑,您必須是執行 SharePoint 管理中心網站電腦的伺服器陣列管理員群組成員。
  1. 在管理中心按一下 [應用程式管理],然後按一下 [管理 Web 應用程式]

  2. 在 [Web 應用程式管理] 頁面上,選取您建立的 Web 應用程式以主控「我的網站」。

  3. 在 [Web 應用程式] 索引標籤的 [管理] 群組中,按一下 [受管理路徑]

  4. 在 [ 定義受控路徑 ] 對話方塊的 [ 新增路徑] 區 段的 [ 路徑 ] 方塊中,輸入您要附加至 URL 命名空間的路徑,然後選取 [萬用字元包含]。 For example, if your web application URL is https://mysites.contoso.com/ and you want users' individual site collections created under a path named "personal", type personal in the Path box. Separate My Sites site collections will be created for each user under https://mysites.contoso.com/personal/.

  5. 依序按一下 [加入路徑]、[確定]

  6. 複製此管理路徑供日後參考。

將 Web 應用程式連接到服務應用程式

主控「我的網站」的 Web 應用程式必須連接到 SharePoint Server 的服務應用程式。 「我的網站」需要使用 User Profile Service 應用程式。 強烈建議您使用 Managed Metadata Service 應用程式與 Search Service 應用程式。 如需詳細資訊,請參閱<在 SharePoint Server 中規劃「我的網站」>的<「我的網站」的架構>。

另外,如果您希望使用者能從右上方選單中的其他 SharePoint 網站存取「我的網站」與 [關於我] 連結,請將這些網站的 Web 應用程式連接到 User Profile Service 應用程式。

將 Web 應用程式連接到服務應用程式

  1. 確認是否具備下列系統管理認證:
  • 要將 Web 應用程式連接到服務應用程式 ,您必須是執行 SharePoint 管理中心網站電腦的伺服器陣列管理員群組成員。
  1. 在管理中心的 [應用程式管理] 區段中,按一下 [管理 Web 應用程式]

  2. 在 [Web 應用程式管理] 頁面上,選取您建立的 Web 應用程式以主控「我的網站」。

  3. 在 [Web 應用程式] 索引標籤的 [管理] 群組中,按一下 [服務連線]

  4. 在 [ 設定服務應用程式關聯 ] 對話方塊的 [ 編輯下列連線群組 ] 清單中,如果預設群組包含您要連線到 Web 應用程式的服務應用程式,請選取 [預設 ]。

  • 如果您選擇 [自訂],請選取您要連接到 Web 應用程式的服務應用程式,包括 User Profile Service 應用程式、Managed Metadata Service 應用程式與 Search Service 應用程式。
  1. 按一下 [確定]

啟用 Web 應用程式的自助網站架設。

使用者第一次檢視「我的網站」時,自助網站架設會為使用者自動架設個別網站集合。

啟用 Web 應用程式的自助網站架設

  1. 確認是否具備下列系統管理認證:
  • 要啟用自助網站架設,您必須是執行 SharePoint 管理中心網站電腦的伺服器陣列管理員群組成員。
  1. 在管理中心的 [應用程式管理] 區段中,按一下 [管理 Web 應用程式]

  2. 在 [Web 應用程式] 頁面中,選擇您建立的 Web 應用程式以主控「我的網站」。

  3. 在 [Web 應用程式] 索引標籤的 [安全性] 群組中,按一下 [自助網站架設]

  4. 在 [ 自助網站建立管理 ] 對話方塊的 [ 網站集合] 中,選取 [ 開啟]。 Optionally, in Quota template to apply, select a quota template.

  5. [啟動SharePoint Server 2013 和 2016 的網站] 或 [SharePoint Server 2019中的網站建立] 中,可能會選取任何選項,包括向使用者隱藏Self-Service網站建立程式。

  6. 按一下 [確定] 完成。

執行其他步驟,設定使用者從「我的網站」建立小組網站的權限,以便使用網站摘要。

  1. 在 [原則] 群組中按一下 [權限原則]

  2. 在 [ 管理許可權原則層級 ] 對話方塊中,按一下 [ 新增許可權原則層級]。

  3. 請輸入權限原則的名稱。

  4. 在 [權限] 下的 [網站權限] 中,選擇 [建立子網站:建立子網站,例如小組網站、會議工作區網站以及文件工作區網站] 的 [授與] 選項。

  5. 按一下 [儲存]

  6. 在 [原則] 群組中按一下 [使用者原則]

  7. 在 [ Web 應用程式的原則 ] 對話方塊上,按一下 [ 新增使用者]

  8. 在 [加入使用者] 的 [區域] 中選取 [(所有區域)],然後按 [下一步]

  9. In Choose Users, enter the user names of the users that you want to create team sites from their My Site to use site feeds. If all users can create team sites from their My Site to use site feeds, click the Browse icon. In Select People and Groups, click All Users, then click Everyone. Click Add, and then click OK.

  10. 在 [選擇權限] 區段中選擇先前建立的 [權限原則] 名稱。

  11. 按一下 [完成],然後按一下 [確定]

設定 User Profile Service 應用程式的「我的網站」設定

具備為「我的網站」設定的「我的網站」主機網站集合及包含相對路徑的管理路徑後,您可更新 User Profile Service 應用程式中的我的網站設定。 大部分的設定會在初始部署期間完成,之後在正常運作的情況下則極少變更。

設定 User Profile Service 應用程式的「我的網站」設定

  1. 確認是否具備下列系統管理認證:
  • 若要設定 User Profile Service 應用程式的我的網站設定,您必須是執行 SharePoint 管理中心網站電腦的伺服器系統管理員群組成員,或是 User Profile Service 應用程式的服務應用程式管理員。
  1. 在管理中心中,按一下 [應用程式管理] 區段的 [管理服務應用程式]

  2. 按一下在此工作初期連接到 Web 應用程式主控「我的網站」的 User Profile Service 應用程式。

  3. 在 [管理設定檔服務] 頁面的 [我的網站設定] 區段中,按一下 [設定我的網站]

  4. On the My Sites Settings page, in the Preferred Search Center section, specify settings for the search center to direct users to when they search for people or documents from their About Me profile page. 如果您尚未設定搜尋中心,您可以略過此步驟,稍後再完成。 For more information, see Search service application in Plan for My Sites in SharePoint Server.

  5. 在 [我的網站主機] 區段中,輸入您在此工作初期建立的「我的網站」主機網站集合 URL。

  6. [Active Directory 的我的網站主機 URL] 區段會使用 Exchange Autodiscover 讓用戶端和行動電話應用程式尋找使用者的 SharePoint Server 2016「我的網站」。

  7. In the Personal Site Location section, type the wildcard inclusion managed path you configured earlier in this task. By default, personal is prepopulated in the box. However, if you chose a different path for your wildcard inclusion managed path, replace personal with your path.

  8. In the Site Naming Format section, select a naming format for the My Sites site collections that will be created when users view their My Sites for the first time. For more information about these formats, see My Sites architecture in Plan for My Sites in SharePoint Server.

  9. 在 [ 語言選項] 區段中,有一個選項可指定使用者是否可以選取其 [我的網站] 的慣用語言。 However, the current behavior is to default to the installation language for SharePoint. My Sites architecture in Plan for My Sites in SharePoint Server

注意事項

本節不在SharePoint Server 2019中。

  1. 在 [ 讀取權限等級 ] 區段中,指定可在建立其他使用者的 [我的網站] 時檢視的使用者或群組。 By default, this includes all authenticated users. However, you can select a more specific group or users depending on the needs of your deployment.

  2. 在 [ 安全性調整選項] 區段中,指定系統產生的貼文在摘要中顯示之前,以及在 [ 標籤和附注 ] 頁面上顯示之前,如何檢查其許可權。

  3. In the Newsfeed section, enable system generated posts to the feed on My Sites by selecting Enable activities in My Site newsfeeds. This option is selected by default. This is important in hosted environments where tenants can share the same User Profile service but have different requirements on whether they can enable newsfeeds for their users.

  4. In the E-mail Notifications section, specify an email address to use as the sender email address for My Site email notifications. 此帳戶不一定為實際受監視的電子郵件地址。 If you want to receive notifications for newsfeed activities, such as replies to your posts or when someone follows you, select Enable newsfeed email notifications.

    重要事項

    您必須將伺服器陣列的輸出 SMTP 伺服器的 IP 位址新增至 Exchange Server 2013 的安全清單中,以防止 我的網站 電子郵件通知傳送到垃圾郵件資料夾。

  5. In the My Site Cleanup section, specify a new owner of a My Site if the existing My Site user is removed from the profile database. For example, if a user leaves the company and is no longer in the profile database, the user's My Site will be deleted together with any content. 不過,在刪除之前,新的擁有者可以復原任何重要的內容。 Select Enable access delegation for the My Site cleanup job to first attempt to assign ownership of the My Site to the user's manager. If no manager is found, the My Site is assigned to the user specified in Secondary Owner. 新擁有者有兩周的時間可從「我的網站」擷取內容,再刪除內容。

  6. In the Privacy Settings section, select Make My Sites Public to make all users' My Sites public. 預設不會選取此選項。

    注意事項

    當使用者的「我的網站」為公用時,使用者的粉絲清單、使用者的追蹤人員清單,以及所有活動 (包括新的追蹤通知、內容的社交標記和評分、生日、職稱變更、工作場所週年日、更新詢問我、張貼在記事區上,以及) 的新部落格文章都會公開。 Any policies set within People and Privacy on the Manage Policies page is overridden.

  7. 按一下 [確定]

如需「我的網站」之其他計時器工作的詳細資訊,請參閱<在 SharePoint Server 中規劃「我的網站」>的<規劃工作與排程>。

啟用 User Profile Service 應用程式 - 活動摘要工作

[User Profile Service 應用程式 - 活動摘要工作] 會在下列事件中,於摘要中建立系統產生的文章:

  • 追蹤標記

  • 標記項目

  • 生日慶祝

  • 職稱變更

  • 工作週年紀念日

  • 更新專業領域

  • 記事區的張貼內容

設定「我的網站」後,請啟用 [User Profile Service 應用程式 - 活動摘要工作],這樣使用者便能在「我的網站」的 [新聞摘要] 中接收系統產生的文章。

有其他您可能想檢閱及變更預設設定的「我的網站」相關的計時器工作。 如需與「我的網站」功能相關之工作的詳細資訊,請參閱<在 SharePoint Server 中規劃「我的網站」>的<規劃工作與排程>。

啟用 User Profile Service 應用程式 - 活動摘要工作

  1. 確認是否具備下列系統管理認證:
  • 若要設定計時器工作,您必須是執行 SharePoint 管理中心網站電腦的伺服器陣列管理員群組成員。
  1. 在管理中心依序按一下 [監視]、[檢閱工作定義]

  2. On the Job Definitions page, in the View list, select Service. The Service list appears.

  • 如果 [服務 ] 清單未顯示 [使用者設定檔服務],請在 [ 服務] 中按一下 [ 沒有選取專案],然後按一下 [ 變更服務]。 On the Select Service page, use the arrows in the upper-right corner to locate User Profile Service, and then click it. The Job Definitions page updates with the User Profile service jobs.
  1. 按一下您在本文前段於<先決條件>為 User Profile Service 應用程式建立的活動摘要工作。 作業名稱的格式User_Profile_service_name - 活動摘要作業,其中User_Profile_service_name是您為 User Profile Service 應用程式指定的名稱。

  2. On the Edit Timer Job page, in the Recurring Schedule section, select the interval that you want the job to run. Available intervals are Minutes, Hourly, Daily, Weekly, and Monthly. Selecting a shorter interval, such as Minutes or Hourly, ensures that activities appear on users' My Site newsfeeds more frequently. However, it increases load on the system depending on how many activities are available. Selecting a longer interval, such as Daily, Weekly, or Monthly, reduces the number of times the job runs and processes feeds. However, it also means that users receive less frequent updates to activities in their newsfeeds.

  3. 按一下 [啟用]

  4. (選用) 按一下 [立即執行],立即執行工作,不需等候下一個排定的時間間隔。

後續步驟

依照本文程序設定「我的網站」後,看看是否需要執行下列選用程序:

設定受信任的「我的網站」主機位置

[受信任的我的網站主機位置] 是選擇性功能,可以禁止使用者在具有多個 User Profile Service 應用程式的組織中,建立多個「我的網站」。

當 User Profile Service 應用程式管理員希望向使用者授與對多個 User Profile Service 應用程式的「我的網站」的存取權限時,這些管理員可以新增指向受信任的「我的網站」主機位置的連結。 在大多數情況下,受信任的「我的網站」主機位置連結,將會根據識別出業務需求而指向個別的使用者或使用者群組。 隨著時間過去,連結可隨著企業與使用者需要之變更而加以維護及變更。 當連結的目標使用者不再需要存取多個位置中的「我的網站」時,User Profile Service 應用程式管理員可以刪除受信任的「我的網站」主機位置連結。

使用管理中心新增受信任的「我的網站」主機位置

  1. 確認是否具備下列系統管理認證:
  • 若要使用管理中心新增受信任的「我的網站」主機位置,您必須是伺服器陣列管理員群組的成員,或是 User Profile Service 應用程式的服務應用程式管理員。
  1. 在管理中心網站上,按一下 [應用程式管理] 下的 [管理服務應用程式]

  2. 在 [管理服務應用程式] 頁面上,從服務應用程式清單中選取 [User Profile Service 應用程式]。

  3. 在功能區上,按一下 [管理]

  4. 在 [管理設定檔服務] 頁面的 [我的網站設定] 下,按一下 [設定受信任的主機位置]

  5. 在 [受信任的我的網站主機位置] 頁面上,按一下 [新增連結] 新增受信任的「我的網站」主機位置。

  6. 在 [新增信任主機位置] 頁面上,在 [URL] 方塊中輸入受信任個人網站位置的 URL。

  7. 在 [描述] 方塊中,輸入受信任個人網站位置的描述。

  8. (選用) 在 [目標對象] 方塊中,於對應的方塊中輸入使用者名稱或群組名稱,或者按一下 [瀏覽] 以透過瀏覽選取對象,然後按一下 [確定]

Users' My Sites are convenient locations for users to save files that they work on in Office client applications, such as Word, Excel, and PowerPoint. 設定 [我的網站] 的環境之後,您可以將連結新增至使用者在 Office 用戶端應用程式的 [另存新檔]對話方塊中儲存檔時看到的 [我的最愛連結] 區段。 Users can then select their My Site and save files to the Documents library available on their My Site.

新增 Office 用戶端應用程式的連結

  1. 確認是否具備下列系統管理認證:
  • 若要新增 Office 用戶端應用程式的連結,您必須是執行 SharePoint 管理中心網站電腦上管理員群組的成員。
  1. 在管理中心網站上,按一下 [應用程式管理] 下的 [管理服務應用程式]

  2. 在 [管理服務應用程式] 頁面上,從服務應用程式清單中選取 [User Profile Service 應用程式]。

  3. 在功能區上,按一下 [管理]

  4. 在 [管理設定檔服務] 頁面上,按一下 [我的網站設定] 下的 [發佈 Office 用戶端應用程式的連結]

  5. 在 [Office 用戶端應用程式的已發佈連結] 頁面上,按一下 [新增連結]

  6. 在 [新增已發佈連結] 頁面上的 [URL] 方塊中,輸入使用者用以發佈連結位置的 URL。

  7. 在 [描述] 方塊中,輸入此位置的簡短名稱。

    此名稱會出現在 [另存新檔] 對話方塊的 [我的最愛連結] 區段中。

  8. Select the type of the location that this link represents. For example, if the target location is a SharePoint document library, select Document Library.

  9. In the Target Audiences box, either type the name of the user or group to add or using the address book to find a user or group to add. Separate multiple user names or group names with a semicolon (;). You may also type All site users to select all users.

    注意事項

    To use the address book, click the book icon. 在出現的對話方塊中,輸入使用者名稱的全部或部分,然後按 ENTER 鍵。 Scroll through the search results, and double-click the name of the user or users whom you want to add. Then click OK.

  10. 按一下 [確定]

    新連結將顯示於 [Office 用戶端應用程式的已發佈連結] 頁面上的連結清單中。

如果您的組織要傳達重要資訊給使用者,可以透過推廣使用者的 我的網站 網站連結來執行。 當您推廣網站連結時,該連結就會出現在網站集合中所有的「我的網站」上。 這可用來顯示重要的公司資訊。 例如,您的組織可能想讓使用者快速存取時程表。 連結的目的地可以是公司內部網路中的網站或網際網路上的外部網站。

將網站推廣連結新增至我的網站

  1. 確認是否具備下列系統管理認證:
  • 若要使用管理中心新增受信任的「我的網站」主機位置,您必須是伺服器陣列管理員群組的成員,或是 User Profile Service 應用程式的服務應用程式管理員。
  1. 在管理中心網站上,按一下 [應用程式管理] 下的 [管理服務應用程式]

  2. 在 [管理服務應用程式] 頁面上,從服務應用程式清單中選取 [User Profile Service 應用程式]。

  3. 在功能區上,按一下 [管理]

  4. 在 [管理設定檔服務] 頁面的 [我的網站設定] 下,按一下 [受管理的推廣網站]

  5. 在 [推廣的網站] 頁面中,按一下 [新增連結]

  6. 在 [推廣的網站] 頁面上的 [屬性] 區段中,執行下列動作:

  7. 在 [URL] 方塊中,輸入您要連結的網站 URL。

  8. 在 [描述] 方塊中,輸入網站的描述。

  9. 在 [擁有者] 方塊中,輸入此連結的擁有者名稱,或是按一下 [瀏覽],從人員選擇器選取擁有者。

  10. 保留 [目標對象] 空白。

    如果保留此方塊空白,您在 [URL] 方塊中指定的連結就會出現在所有使用者的「我的網站」上方連結列中。

    注意事項

    If you want to specify target audiences for the site, either type the audience names in the Target Audiences box or click Browse to use the Select Audiences page. This option requires that you define an audience, set up rules for this audience, and compile the audience.

  11. 按一下 [確定]

如果尚未啟動「我的網站」的相關服務,請加以啟動,讓您的環境中可以使用「我的網站」功能。 如需詳細資訊,請參閱<在 SharePoint Server 中啟動或停止服務>。