---
schema_version: "1"
id: bb905072d1e5b4e8b22772e65e159b12fb32be4a90acd8286684165b3d6ecaf0
title: tsm user-identity-store
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/server/cli_user-identity_tsm.md
canonical_url: https://help.tableau.com/current/server/zh-cn/cli_user-identity_tsm.htm
source_site: help.tableau.com
content_type: documentation
content_hash: ce09a749c4545f7cdc72abacbf6604bfa097a17542e1e2b6870d6b3e5897f61c
description: Reference for tsm user-identity-store commands to modify identity store settings after install.
---
[跳转到主要内容](#main-content)

# tsm user-identity-store

可以使用 `tsm user-identity-store` 在初始配置之后为 Tableau Server 修改身份存储的设置。

安装过程中会对身份存储进行初始配置。请参见[配置初始节点设置](https://help.tableau.com/current/server/zh-cn/config_general.htm)。

有关身份存储概念的简介，请参见[身份存储](https://help.tableau.com/current/server/zh-cn/plan_identity_store.htm)。

有关 LDAP/Active Directory 配置参考表，请参见[外部身份识存储配置参考](https://help.tableau.com/current/server/zh-cn/ldap_config.htm)。

- [get-group-mappings](#TSMGroupMap)
- [get-user-mappings](#TSMUserMap)
- [list](#TSMUIList)
- [set-connection](#TSMSetConnection)
- [set-group-mappings](#TSMSetGroupMap)
- [set-user-mappings](#TSMSetUserMap)
- [verify-group-mappings](#TSMverify-group-mappings)
- [verify-user-mappings](#TSMIDverify-user-mappings__[options])

## tsm user-identity-store get-group-mappings \[options\]

显示身份存储组映射。

### 概要

tsm user-identity-store get-group-mappings \[global options\]

## tsm user-identity-store get-user-mappings \[options\]

显示身份存储用户映射。

### 概要

tsm user-identity-store get-user-mappings \[global options\]

## tsm user-identity-store list \[options\]

列出用户身份配置。

### 概要

tsm user-identity-store list \[options\] \[global options\]

### 选项

\-v, --verbose

可选。

列出所有配置参数。

## tsm user-identity-store set-connection \[options\]

设置身份存储连接参数。

### 概要

tsm user-identity-store set-connection --kerbkeytab <kerbkeytab> \[options\] \[global options\]

### 选项

\-b,--bind <username and password | Kerberos>

可选。

设置 LDAP 绑定类型。

\-d,--domain <domain>

可选。

域名。

\-hn,--hostname <hostname>

可选。

LDAP 服务器的主机名。您可以为此值输入主机名或 IP 地址。此处指定的主机将用于主域上的用户/组查询。如果用户/组查询位于其他域中，Tableau Server 将查询 DNS 来确定相应的域控制器。

\-kc,--kerbconfig <kerbconfig>

可选。

Kerberos 配置文件路径。

\-kp,--kerbprincipal <kerbprincipal>

可选。

Kerberos 主体。

\-kt,--kerbkeytab <kerbkeytab>

必需。

Kerberos keytab 文件路径。

\-l,--port <port>

可选。

设置 LDAP 端口值。

\-lp,--ldappassword <ldappassword>

可选。

LDAP 密码。

\-lu,--ldapusername <ldapusername>

可选。

设置 LDAP 用户名值。

\-n,--nickname <nickname>

可选。

NetBIOS 名称（昵称）。

## tsm user-identity-store set-group-mappings \[options\]

设置身份存储组映射并配置实现任意或自定义模式的 LDAP 目录。

### 概要

tsm user-identity-store set-group-mappings \[options\] \[global options\]

### 选项

\-b,--basefilter <groupbasefilter>

可选。

设置组 BaseFilter 值。

\-cn,--classnames <group\_classnames>

可选。

使用您在此处设置的值替代默认用户类名值（包含“group”字符串）。您可以提供由逗号分隔的多个类名。

\-d,--description <description>

可选。

组说明。

\-e,--groupemail <groupemail>

可选。

组电子邮件值。

\-m,--member <member>

可选。

设置组成员。

\-n,--groupname <groupname>

可选。

组名称。

## tsm user-identity-store set-user-mappings \[options\]

设置身份存储用户映射并配置实现任意或自定义模式的 LDAP 目录。

### 概要

tsm user-identity-store set-user-mappings --certificate <certificate> \[options\] \[global options\]

### 选项

\-c,--certificate <certificate>

可选。

用户证书文件位置。

\-cn,--classnames <user\_classnames>

可选。

使用您在此处设置的值替代默认用户类名值（“user”and“inetOrgPerson”）。您可以提供由逗号分隔的多个类名。

\-dn,--displayname <displayname>

可选。

用户的显示名称。

\-e,--email <email>

可选。

用户的电子邮件地址。

\-jp,--jpegphoto <jpegfile>

可选。

用户的 jpeg 图像位置。

\-m,--memberof <groupname>

可选。

用户所属的组。

\-t,--thumbnail <thumbnail>

可选。

用户的缩略图位置。

\-ub,--basefilter <userbasefilter>

可选。

用户的 BaseFilter。

\-uu,--ldapusername <ldapusername>

可选。

用户名。

## tsm user-identity-store verify-group-mappings \[options\]

验证 LDAP 组映射的配置。

**注意：**此命令使用存储在 `[wgserver.domain.password](https://help.tableau.com/current/server/zh-cn/cli_configuration-set_tsm.htm#wgserver-domain-password)` 和 `[wgserver.domain.username](https://help.tableau.com/current/server/zh-cn/cli_configuration-set_tsm.htm#wgserver-domain-username)` 中的凭据。如果未配置这些键，则即使 Tableau Server 以其他方式成功连接到 Active Directory，该命令也会失败。

### 概要

tsm user-identity-store verify-group-mappings --verify <group\_name> \[global options\]

### 选项

\-v,--verify <group\_name>

可选。

要搜索的组的名称。

## tsm user-identity-store verify-user-mappings \[options\]

验证 LDAP 用户映射的配置。

**注意：**此命令使用存储在 `[wgserver.domain.password](https://help.tableau.com/current/server/zh-cn/cli_configuration-set_tsm.htm#wgserver-domain-password)` 和 `[wgserver.domain.username](https://help.tableau.com/current/server/zh-cn/cli_configuration-set_tsm.htm#wgserver-domain-username)` 中的凭据。如果未配置这些键，则即使 Tableau Server 以其他方式成功连接到 Active Directory，该命令也会失败。

### 概要

tsm user-identity-store verify-user-mappings --verify <user\_name> \[global options\]

### 选项

\-v,--verify <user\_name>

可选。

要搜索的用户的名称。

## 全局选项

\-h, --help

可选。

显示命令帮助。

\-p, --password <password>

在会话不是活动状态的情况下为必需，`-u` 或 `--username` 也为必需。

为在 `-u` 或 `--username` 中指定的用户指定密码。

如果密码包括空格或特殊字符，请将其括在引号中：

`--password "my password"`

\-s, --server https://<hostname>:8850

可选。

对 Tableau 服务管理器使用指定的地址。URL 必须以 `https` 开头，包括端口 8850，并使用服务器名称（而不是 IP 地址）。例如，`https://<tsm_hostname>:8850`。如果没有指定服务器，则假定为 `https://<localhost | dnsname>:8850`。

\--trust-admin-controller-cert

可选。

使用此标志来信任 TSM 控制器上的自签名证书。有关证书信任和 CLI 连接的详细信息，请参见 [连接 TSM 客户端](https://help.tableau.com/current/server/zh-cn/tsm_overview.htm#Connecti)。

\-u, --username <user>

在会话不是活动状态的情况下为必需，`-p` 或 `--password` 也为必需。

指定用户帐户。如果未包括此选项，则使用您登录所使用的凭据运行该命令。