---
schema_version: "1"
id: 7c3834432199f1d7918faf8470ea758f4f28e7c8a06486d10c5cae5d6d3b4583
title: 管理身份移轉
collection: tableau
version: current
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/current/zh-tw/server/identity_migration_manage.md
canonical_url: https://help.tableau.com/current/server/zh-tw/identity_migration_manage.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 515309da0eb58efaa98c5199f53b1f3b0df03438c236e8ad93eecd8f1d4fcede
description: Monitor and manage identity migration jobs and settings on Tableau Server.
---
[跳至主要內容](#main-content)

# 管理身份移轉

作為管理員，您可以通過 Tableau Server 的使用者頁面中提供的專用身份移轉頁面監控和管理身份移轉，包括變更移轉作業的執行時間。此頁面在移轉過程中可用。

![身分移轉概觀頁面。](/tableau/current/zh-tw/server/zh-tw/Img/id_mig_main.png)

移轉作業旨在於後台執行，不會中斷或干擾 Tableau Server 的使用。但如果需要，可以進行調整以影響移轉作業的執行頻率、移轉作業的執行時間以及移轉作業的執行時長。

通常，移轉可能需要 3 分鐘到 10 天不等，具體取決於 Tableau Server 部署的大小以及您在移轉期間對預設設定所做的任何變更。例如，如果有 10,000 個使用者，則移轉可能需要大約 30 分鐘。

**注意：**移轉作業執行時，所有身份驗證和與使用者相關的功能都正常工作。

## 管理身份移轉作業

您可以管理身份移轉以下方面。

解決身份衝突

要查看移轉期間可能遇到的身份衝突，請參閱[解決身份移轉衝突](https://help.tableau.com/current/server/zh-tw/identity_migration_conflicts.htm)。

變更每日移轉作業排程

1. 以管理員身分登入 Tableau Server。
2. 在左側巡覽窗格中，選取使用者（或多站台 Tableau Server 的所有站台\>使用者），然後按一下身份移轉頁面。

1. 在「移轉概觀」標題旁邊，按一下「編輯排程」按鈕。
2. 在「編輯排程」對話方塊中，變更作業可以執行的時間和頻率。
    
    **注意：**您可以忽略此對話方塊中的優先級和執行選項。
    
    ![編輯排程對話方塊，其中包含編輯移轉頻率的選項。](/tableau/current/zh-tw/server/zh-tw/Img/id_mig_schedule.png)
3. 完成後，按一下「更新」。

啟動移轉作業

1. 以管理員身分登入 Tableau Server。
2. 在左側巡覽窗格中，選取使用者（或多站台 Tableau Server 的所有站台\>使用者），然後按一下身份移轉頁面。

1. 從任何索引標籤中，選取一或多個使用者。
2. 從「動作」功能表中，選取「重試移轉」或「確認」，具體取決於需要執行的動作。
    
    ![身分移轉動作下拉式功能表，其中包含重試移轉或確認的選項。](/tableau/current/zh-tw/server/zh-tw/Img/id_mig_actions.png)
3. 在「移轉概觀」標題旁邊，按一下「編輯排程」的下拉式箭頭。
4. 選擇 \[立即執行\]。
    
    ![編輯移轉排程的下拉式功能表，其中醒目提示「立即執行」選項。](/tableau/current/zh-tw/server/zh-tw/Img/id_mig_runnow.png)

暫停身份移轉

1. 以管理員身分登入 Tableau Server。
2. 在左側巡覽窗格中，選取使用者（或多站台 Tableau Server 的所有站台\>使用者），然後按一下身份移轉頁面。

1. 在「移轉概觀」標題旁邊，按一下「編輯排程」的下拉式箭頭。
2. 選取「停用」。

重新啟動身份移轉

1. 以管理員身分登入 Tableau Server。
2. 在左側巡覽窗格中，選取使用者（或多站台 Tableau Server 的所有站台\>使用者），然後按一下身份移轉頁面。

1. 在「移轉概觀」標題旁邊，按一下「編輯排程」的下拉式箭頭。
2. 選取「啟用」。

## 變更身份移轉設定

為了減少身份移轉可能對 Tableau Server 造成的任何潛在壓力，移轉配置為使用下方列出的預設設定執行。

### 移轉設定

<table style="width: 90%;mc-table-style: url('Resources/TableStyles/Basic-Border-Light.css');margin-left: 0;margin-right: auto;" class="TableStyle-Basic-Border" cellspacing="0"><colgroup><col class="TableStyle-Basic-Border-Column-Column1"><col class="TableStyle-Basic-Border-Column-Column1"><col class="TableStyle-Basic-Border-Column-Column1"><col class="TableStyle-Basic-Border-Column-Column1"></colgroup><tbody><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="font-weight: bold;text-align: center;">類型</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="font-weight: bold;text-align: center;">tsm 命令</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="font-weight: bold;text-align: center;">預設值</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1"><b>程序</b></td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">作業時間表</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">不適用</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">每天凌晨 3:00，直到完成</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">可在從身分轉移頁面設定，請參閱上述<a href="#schedule" class="xref">變更每日移轉作業排程</a>。</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">每秒使用者身份請求數（速率）</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1"><code>tsm authentication identity-migration configure -–rate</code></td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">最多 5 個</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1" rowspan="2"><p>如果需要，可以使用 <code>tsm authentication identity-migration</code> 命令以使用以下步驟變更上方列出的移轉設定。</p><ol><li value="1">在叢集中的初始節點（安裝 TSM）上以管理員身分開啟命令提示字元。</li><li value="2"><p>執行中描述的一或兩個命令 <a href="https://help.tableau.com/current/server/zh-tw/cli_authentication_tsm.htm#tsm_identity_mig_config"><code>tsm authentication identity-migration</code></a>。</p><p>例如，要變更單個作業的執行時間和速率，而不是它們的預設值，可以執行以下命令：</p><p><code>tsm authentication identity-migration configure --job-run-time 180 --rate 3</code></p></li></ol></td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">單個作業執行階段</td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1"><code>tsm authentication identity-migration configure -–job-run-time</code></td><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">120 分鐘</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyB-Column1-Body1"><a name="enable"></a>啟用身分移轉</td><td class="TableStyle-Basic-Border-BodyB-Column1-Body1"><code>tsm configuration set -k features.IdentityMigrationBackgroundJob</code></td><td class="TableStyle-Basic-Border-BodyB-Column1-Body1"><code>false</code></td><td class="TableStyle-Basic-Border-BodyA-Column1-Body1"><p>透過啟用身分移轉，Tableau Server 可以使用身分服務預存與管理使用者身分資訊。</p><ol><li value="1"><p>在叢集中的初始節點（安裝 TSM 的位置）中以管理員身分開啟命令提示字元。</p></li><li value="2"><p>執行以下命令：</p><p><code>tsm configuration set -k features.IdentityMigrationBackgroundJob -v true</code></p></li></ol><p><b>附註：</b>身分移轉與身分服務是某些功能的先決條件，例如<a href="https://help.tableau.com/current/server/zh-tw/identity_pools.htm" target="_blank">身分集區</a>。有關 tsm 命令的詳情，請參閱 <a href="https://help.tableau.com/current/server/zh-tw/cli_configuration-set_tsm.htm#identity_migration" class="xref">features.IdentityMigrationBackgroundJob</a>。</p></td></tr></tbody></table>

### 停用身分移轉

如果已升級至 Tableau Server 版本 2021.4.21、2022.1.17、2022.3.9 和 2023.1.5，則可能需要停用身分移轉。停用身分移轉後，Tableau Server 將無法使用身分服務預存與管理使用者身分資訊。

1. 在叢集中的初始節點（安裝 TSM 的位置）中以管理員身分開啟命令提示字元。
2. 執行以下命令：
    
    `tsm configuration set -k features.IdentityMigrationBackgroundJob -v false`

**附註：**身分移轉與身分服務是某些功能的先決條件，例如[身分集區](https://help.tableau.com/current/server/zh-tw/identity_pools.htm)。

## 完成身份移轉並配置身份服務

在解決或解決所有使用者衝突並執行移轉作業後，必須將 Tableau Server 配置為使用身份服務來完成身份移轉過程。

### 第 1 步：驗證並完成身份移轉

1. 以管理員身分登入 Tableau Server。
2. 在左側巡覽窗格中，選取使用者（或多站台 Tableau Server 的所有站台\>使用者），然後按一下身份移轉頁面以驗證移轉是否已開始。
    
    可以使用 Tableau Server 使用者頁面中提供的專用身份移轉頁面來監控和管理其進度。有關詳情，請參閱[管理身份移轉](#)。
3. 解決或確認所有身分衝突，如[解決身份移轉衝突](https://help.tableau.com/current/server/zh-tw/identity_migration_conflicts.htm)中所述，以便所有失敗索引標籤顯示「0」，如下圖所示。
    
    ![顯示零失敗的身分遷移摘要。](/tableau/current/zh-tw/server/zh-tw/Img/id_mig_failures_acknowledge.png)
4. 執行以下_其中一項_動作：
    
    - 要立即執行身份移轉作業，請按一下「移轉概觀」標題旁邊的「編輯排程」下拉式箭頭，然後選取「立即執行」 。
        
        ![編輯移轉排程的下拉式功能表，其中包含停用或立即執行選項。](/tableau/current/zh-tw/server/zh-tw/Img/id_mig_overview_runnow.png)
    - 或者，可以等待移轉作業在下一個排程時間執行。
5. 移轉完成後，從「身分移轉」頁面驗證「移轉概觀」是否顯示100% 完成。
    
    ![身分移轉進度條，顯示 100% 完成。](/tableau/current/zh-tw/server/zh-tw/Img/id_mig_complete.png)

### 步驟 2：將 Tableau Server 配置為使用身份服務

1. 在叢集中的初始節點（安裝 TSM）上以管理員身分開啟命令提示字元。
2. 根據您正在執行的 Tableau Server 版本執行下列命令：
    
    - 對於 Tableau Server 版本 2022.1.8（及更高版本）、2022.3.10（及更高版本）、2023.1.6（及更高版本）及更高版本：
        
        ```
        tsm configuration set -k wgserver.authentication.legacy_identity_mode.enabled -v false
        ```
    - 對於 Tableau Server 版本 2022.1-2022.1.7、2022.3-2022.3.9 或 2023.1-2023.1.5：
        
        ```
        tsm authentication legacy-identity-mode disable
        ```
    
    **附註：**執行上述命令之一後，專用的身分移轉頁面將被移除且無法再存取。只有 `tsm configuration set -k wgserver.authentication.legacy_identity_mode.enabled` 為 `true` 或者啟用 `tsm authentication legacy-identity-mode` 後才能存取此頁面。

在 Tableau Server 配置為使用身份服務後，當使用者登入到 Tableau Server 時，Tableau Server 會使用他們在配置身份存放區中的識別碼來搜尋他們的使用者身份。識別碼會傳回通用唯一識別碼 (UUID) 並用於符合的現有 Tableau Server 使用者身份。然後，此過程為使用者產生工作階段並完成身份驗證工作流程。

### 步驟 3：啟用身分集區

1. 執行以下命令：
    
    ```
    tsm configuration set -k features.IdentityPools -v true
    tsm pending-changes apply
    ```

**附註：**執行這些命令會導致 Tableau Server 重新啟動。