跳至主要內容
Adaptive Planning
上次更新時間 :2025-09-05
使用 Workday 憑證登入資料代理程式和指令碼編輯器

使用 Workday 憑證登入資料代理程式和指令碼編輯器

本文中的某些連結會轉至 Workday Community。如果您沒有 Community 帳戶,請申請一個。
在下列情況下,您可以在建立代理程式時使用Workday憑證登入 Adaptive資料代理程式︰
  • 您從 Workday 用戶完成「使用者同步」
  • 您為資料代理程式註冊了 API 用戶端,並將其資訊提供給Workday Adaptive Planning Data Agent Manager。
此流程需要兩種不同的Workday API 註冊授予類型︰
  • 用於佈建資料代理程式的授權代碼授予,供Adaptive Planning使用者登入的使用者介面使用。
  • 佈建代理程式後,用於非使用者介面權杖的 JWT Bearer 授權會以整合服務科目的形式進行交換,且不依賴Adaptive Planning使用者介面登入。

先決條件

在 Adaptive Planning 中
安全性︰「資料設計人員」
權限
在 Workday 中
  • 註冊 API 用戶端所需的安全性。
  • 用戶設定
    報告的
    Adaptive Planning
    分頁上啟用公開 API。請參閱「步驟︰針對 HCM 和 Financials 配置Adaptive Planning」 。
  • 若資料代理程式版本為 12.0.240 (含) 以上,請建立 ISU。請參閱「步驟︰在使用者同步後啟用Planning資料來源」中的 ISU 步驟。
    對於資料代理程式 12.0.240 及更新版本,登入的使用者不需要Workday中的
    Setup: Adaptive Planning API Access
    網域安全原則。
  • 將 ISU 指派給 Adaptive ISU 安全群組。
在託管 Data Agent 和Workday Adaptive Planning Data Agent Manager 的網路上
確認防火牆和網路設定可存取Workday IP 位址。請參閱「」Adaptive Planning驗證 URL 和 IP 位址

在Workday Adaptive Planning Data Agent Manager 中輸入Workday API 用戶端詳細資料

  1. 驗證是否已在
    Workday 用戶設定
    Adaptive Planning
    分頁中開啟「啟用公開 API」。
  2. 使用
    授權代碼授予
    搭配
    Bearer
    存取權杖,在Workday中針對資料代理程式註冊 API 用戶端。此授權代碼授予用於登入代理程式服務,以及佈建代理程式的使用者介面。請參閱「註冊 API 用戶端」
    1. 選取
      Non-Expiring Refresh Tokens
    2. 範圍 (功能區)
      設為
      「系統」
      並新增
      Adaptive Planning
    3. 選取
      OK (確定)
      以產生金鑰、密鑰和其他可識別新整合用戶端的詳細資料。
    4. 複製
      授權端點、權杖端點、用戶端 ID
      用戶端密鑰
      ,並在 Data Agent Manager 啟動後輸入這些值。
  3. 在本機電腦上啟動Workday Adaptive Planning Data Agent Manager。
  4. 選取
    Diagnose and Configure Network
    (診斷和配置網路)。
  5. 選取
    Workday
    分頁。
  6. 輸入在 Workday 中註冊 API 用戶端時產生的資訊︰
    • 授權端點
    • 權杖端點
    • 從 Workday 複製的用戶端 ID
    • 從 Workday 複製的用戶端密鑰
    • 重新導向 URL
      必須與
      重新導向 URI
      相符
      https://www.workday.com
      註冊 API 用戶端時輸入。
  7. 選取
    Sign in with Workday (使用 Workday 登入)
    並登入 Data Agent Manager。
    若資料代理程式版本為 12.0.240 (含) 以上,登入的使用者不需要遵照 Workday 中的「設定︰Adaptive Planning API 存取」網域安全性原則。
  8. 如果您使用 12.0.239 版 (含) 以下的資料代理程式,請就此打住。如果您的資料代理程式版本為 12.0.240 (含) 以上,請繼續執行下一步。
  9. 選取
    Diagnose and Configure Network Options (診斷和配置網路選項)
  10. 選取
    Workday Integration
    (Workday 整合) 分頁。
  11. 配置
    Workday Integration
    分頁,並在Workday中為資料代理程式註冊 API 用戶端。請參閱「註冊 API 用戶端」 。註冊 API 用戶端時,請將
    JWT Bearer
    存取權杖用於不依賴Adaptive Planning使用者介面登入使用者的非使用者介面權杖交換︰
    1. x509 Certificate (x509 憑證)
      區段中,選取
      Create x509 Public Key (建立 x509 公開金鑰)
      ,指定名稱,然後貼上從Workday Adaptive Planning Data Agent Manager
      Workday Integration (Workday 整合
      ) 分頁複製的
      Certificate (憑證)
    2. 將範圍 (功能區) 設為
      「系統」
      並新增
      Adaptive Planning
    3. 選取
      OK (確定)
      以產生用戶端 ID、權杖端點和其他可識別新整合用戶端的詳細資料。
    4. 複製
      用戶端 ID
      權杖端點
      。在Workday Adaptive Planning Data Agent Manager 啟動後,您將需要這些資料。
  12. 輸入在 Workday 中為您的
    JWT Bearer
    存取權杖註冊 API 用戶端時產生的資訊︰
    • 從 Workday 複製的
      用戶端 ID
    • 從Workday中的
      Workday Tenant Setup
      Adaptive Planning
      Public API
      複製的
      ISU
      。您可能必須要求管理者提供 ISU。
    • 從 Workday 複製的
      權杖端點
    • 憑證
      (唯讀)。
  13. 選取
    套用Workday整合設定
使用 Workday 憑證登入 Adaptive Script Editor
輸入資料代理程式的 API 用戶端資訊後,即可將其複製到 Adaptive Script Editor 的 Workday 分頁中。
  1. 在您的本機電腦上啟動 Adaptive Script Editor。導覽至
    Adaptive Data Agent
    >
    Adaptive Script Editor
  2. 在指令碼編輯器中選取
    Workday
    分頁。
  3. 從您的資料代理程式將下列各項貼入欄位中︰
    • 授權端點
    • 權杖端點
    • 從 Workday 複製的
      用戶端 ID
    • 從 Workday 複製的
      用戶端密鑰
    • 重新導向 URL
      必須與
      重新導向 URI
      相符
      https://www.workday.com
      註冊 API 用戶端時輸入。
  4. 選取
    整合
    分頁。
  5. 選取
    Sign In with Workday (使用 Workday 登入)
  6. 提供您的 Workday 憑證。
  7. 如果您使用 12.0.239 版 (含) 以下的資料代理程式,請就此打住。
  8. 若資料代理程式版本為 12.0.240 (含) 以上,請配置「Workday Integration」(Workday 整合) 分頁。
  9. 輸入在 Workday 中為您的
    JWT Bearer
    存取權杖註冊 API 用戶端時產生的資訊︰
    • 從 Workday 複製的
      用戶端 ID
    • 從Workday中的
      Workday Tenant Setup
      Adaptive Planning
      Public API
      複製的
      ISU
      。您可能必須要求管理者提供 ISU。
    • 從 Workday 複製的
      權杖端點
    • 憑證
      (唯讀)。
使用 Workday 憑證安裝 Adaptive Script Editor、Adaptive Planning Input 和 Output 外掛程式
指令碼編輯器中的 Adaptive Planning Input 和 Adaptive Planning Output 外掛程式不會透過使用者介面執行。由於使用者並非每次都會登入,因此這些程式需要有 JWT Bearer 授權和整合系統使用者 (ISU)。
  1. 在本機電腦上開啟 Adaptive Script Editor 並登入。
  2. 新建轉換或作業,或開啟現有轉換或作業。
  3. Adaptive Planning Output
    Adaptive Planning Input 外掛
    程式拖入其中,然後按一下滑鼠右鍵以選取
    Edit (編輯)
  4. Instance Connection (實例連線)
    分頁中,將
    Login method (登入方法)
    變更為
    Workday
  5. 複製
    「憑證」
    欄位的所有內容。此憑證可證明此外掛程式已獲得與 Workday 通訊的授權。在 Workday 中完成 API 用戶端註冊和編輯器外掛程式設定之前,請勿關閉指令碼編輯器。
在 Workday 中註冊 API 用戶端
  1. 開啟瀏覽器並以超級使用者的身分登入 Workday。
  2. 在Workday搜尋
    Register API Client
  3. Client Grant Type
    (用戶端授予類型) 設為
    JWT Bearer Token
    (JWT Bearer 權杖)。
  4. x509 Certificate
    (x509 憑證) 區段中,選取
    Create x509 Public Key
    (建立 x509 公開金鑰)、指定名稱,然後貼上從 Adaptive Planning Data Agent Service Manager 中
    Workday Integration
    (Workday 整合) 分頁複製的
    Certificate
    (憑證)。
  5. 範圍
    設為
    Adaptive Planning
  6. 輸入
    https://www.workday.com
    用於
    重新導向 URL
  7. 選取
    確定
    以儲存此頁面並保持開啟狀態,以便您從中復制
    用戶端 ID
    權杖端點
在指令碼編輯器中完成外掛程式設定
請使用 API 用戶端 ID、權杖端點和 ISU 完成外掛程式設定。
  1. 返回 Adaptive Script Editor,貼上Workday的
    用戶端 ID
    權杖端點
  2. 從Workday中的
    Workday Tenant Setup
    Adaptive Planning
    Public API
    複製的
    ISU
    。您可能必須要求管理者提供 ISU。請參閱「Steps: Configure Workday to Import Data to Adaptive Planning」 ,以取得更多關於建立 ISU 的資訊。
  3. 選取
    OK (確定)
    以儲存。

使用者同步和原有的資料代理程式

在您從 Workday 執行使用者同步之前和之後,請執行下列步驟,以確保資料代理程式持續執行不中斷。
執行使用者同步之前
從Workday執行使用者同步之前,請將任何現有資料代理程式的 Data Agent Manager 至少升級至 12.0.240版本,並按照配置Workday分頁的步驟操作。請參閱「升級Workday Adaptive Planning Data Agent Manager」
  1. 在本機電腦上啟動Workday Adaptive Planning Data Agent Manager。
  2. 選取
    Diagnose and Configure Network
    (診斷和配置網路)。
  3. 選取
    Workday
    分頁。
  4. 輸入在 Workday 中註冊 API 用戶端時產生的資訊︰
    • 授權端點
    • 權杖端點
    • 從 Workday 複製的用戶端 ID
    • 從 Workday 複製的用戶端密鑰
    • 重新導向 URL
      必須與
      重新導向 URI
      相符
      https://www.workday.com
      註冊 API 用戶端時輸入。
從 Workday 執行使用者同步之後
在使用者同步後,配置
Workday Integration
(Workday 整合) 分頁。
  1. 選取
    Workday Integration
    (Workday 整合) 分頁。
  2. 使用
    JWT Bearer
    存取權杖在Workday中針對資料代理程式註冊 API 用戶端。請參閱「註冊 API 用戶端」
    1. 建立
      x509 公開金鑰
      ,並貼上從Workday Adaptive Planning Data Agent Manager
      Workday Integration
      分頁複製的
      Certificate (憑證)
    2. 將範圍 (功能區) 設為
      System
      (系統) 和
      Adaptive Planning
    3. 選取
      OK
      (確定),產生
      用戶端 ID
      權杖端點
      和其他詳細資料,以識別新的整合用戶端。
    4. 複製
      ISU
      。在Workday Adaptive Planning Data Agent Manager 啟動後,您將需要這些資料。
  3. 在本機電腦上啟動Workday Adaptive Planning Data Agent Manager。
  4. 選取
    Diagnose and Configure Network
    (診斷和配置網路)。
  5. 選取
    Workday Integration
    (Workday 整合) 分頁。
  6. 輸入在 Workday 中為您的
    JWT Bearer
    存取權杖註冊 API 用戶端時產生的資訊︰
    • 從 Workday 複製的
      用戶端 ID
    • 從Workday中的
      Workday Tenant Setup
      Adaptive Planning
      Public API
      複製的
      ISU
      。您可能必須要求管理者提供 ISU。
    • 從 Workday 複製的
      權杖端點
    • 憑證
      (唯讀)。
  7. 啟動資料代理程式,選取
    Sign in with Workday (使用 Workday
    登入) 並登入。