---
schema_version: "1"
id: 5eb65bfd5ba1eb9753b07b4aefab3f58029f0c81397dc6981a5a303e75c41cfd
title: sapHanaSettings 實體
collection: tableau
version: current
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/current/zh-tw/server/entity_sapHanaSettings.md
canonical_url: https://help.tableau.com/current/server/zh-tw/entity_sapHanaSettings.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 7d927127e338b3d79c9912e0d81ec7ae395a11c4d4685678db58ffe7cd169383
description: Reference for the sapHanaSettings entity to configure SAP HANA SAML delegation.
---
[跳至主要內容](#main-content)

# sapHanaSettings 實體

使用 sapHanaSettings 實體來為 SAP HANA 設定 SAML 委派。

繼續之前，請檢閱[設定 SAP HANA SSO](https://help.tableau.com/current/server/zh-tw/config_sap_hana_sso.htm)。

使用下面的組態檔範本建立一個 json 檔案。使用適當的值填寫各個選項之後，使用以下命令傳遞 json 檔案並應用設定：

`tsm settings import -f path-to-file.json`

`tsm pending-changes apply`

如果擱置組態需要重新啟動伺服器，`pending-changes apply` 命令將顯示提示，讓您知道即將重新啟動。即使伺服器已停止，也會顯示提示，但在這種情況下不會重新啟動。您可以使用 `--ignore-prompt` 選項隱藏提示，但這樣做不會改變重新啟動行為。如果變更不需要重新啟動，則不會出現提示即可套用變更。有關詳情，請參閱 [tsm pending-changes apply](https://help.tableau.com/current/server/zh-tw/cli_pending-changes.htm#pending-changes-apply)。

### SAP HANA SAML 設定

下面範本中的設定指定在包含 SAP HANA 的 SAML 委派方案中 Tableau Server 的設定。

### 組態範本

使用此範本來設定受信任的驗證設定。

configEntities 中引用的所有檔案均必須位於本機電腦上。不要指定 UNC 路徑。

**重要事項**所有實體選項均大小寫視為相異。

有關組態檔、實體和金鑰的更多說明，請參閱[組態檔範例](https://help.tableau.com/current/server/zh-tw/config_file_example.htm)。

{
  "configEntities": {
	"sapHanaSettings": {
	"\_type": "sapHanaSettingsType",
	"enabled": "true",
	"usernameFormat": "username",
	"usernameCase": "preserve",
	"certFile": "path-to-cert\_file",
	"keyFile": "path-to-key\_file"
	 }
	}
}		

### 組態檔參考

此表包括可隨 `"gatewaySettings"` 實體集一起包括的所有選項。

enabled

必需。

值：`true` 或 `false`

usernameFormat

值：`username`、`domain_and_username` 或 `email`

指定使用者名認證格式。

usernameCase

值：`lower`、`upper` 或 `preserve`

指定使用者輸入名稱大小寫。

certFile

指定本機電腦上憑證檔的檔案路徑和名稱。

例如，`"c:\\Program Files\\Tableau\\Tableau Server\\SAML\\saml_cert.crt"`。

keyFile

指定本機電腦上憑證金鑰的檔案路徑和名稱。

例如，`"c:\\Program Files\\Tableau\\Tableau Server\\SAML\\saml_key.der"`。