Skip to content

查看用户敏感字段

适用版本>=v7.0.2603.20260326

接口说明:基于user_id查看用户敏感字段

标签用户自定义字段

请求说明

字段
请求地址
配置域名+/openapi+/v7/users/{user_id}/read_user_sensitive_attrs
HTTP 方法
POST
接口描述
接口在查看用户敏感字段时会受到企业字段可见性管控,调用行为将自动上报审计日志以及敏感字段查看行为预警,业务方在使用前需充分评估应用场景,确保符合合规与安全要求
签名方式
KSO-1(配置域名+/openapi不参与签名)
限频策略
权限要求
查询和管理用户自定义字段(用户授权) kso.user_custom_attr.readwrite

请求头 (Headers)

属性名类型是否必填描述可选值
X-Kso-Date
stringRFC1123 格式的日期,例: Wed, 23 Jan 2013 06:43:08 GMT-
X-Kso-Authorization
stringKSO-1 签名值,详见《签名方法》-
Authorization
string授权凭证,格式为:Bearer {access_token}-

路径参数 (Path)

属性名类型是否必填描述可选值
user_id
string用户id,长度范围[1,128]-

请求体(Body)

请求体格式: application/json

没有可用的数据

请求体示例

json
{
  "attr_identities": [
    {
      "attr_id": "string"
    }
  ],
  "dept_id": "string"
}

响应体(Response)

HTTP状态码: 200
响应体格式: application/json

没有可用的数据

响应体示例

json
{
  "data": {
    "attrs": [
      {
        "attr_meta": {
          "ctime": 0,
          "key": "string",
          "modify_permissions_level": "none",
          "mtime": 0,
          "name": "string",
          "options": [
            {
              "key": "string",
              "name": "string"
            }
          ],
          "order": 0,
          "scene_show": {
            "card_show": "all_hidden",
            "search_result_show": "all_hidden"
          },
          "show": "all_hidden",
          "show_mutable": true,
          "show_support_level": "global",
          "value_type": "text"
        },
        "attr_value": {
          "option": {
            "key": "string",
            "name": "string"
          },
          "relation_depts": [
            {
              "abs_path": "string",
              "dept_name": "string",
              "dimension": {
                "ctime": 0,
                "desc": "string",
                "id": "string",
                "mtime": 0,
                "name": "string"
              },
              "id": "string"
            }
          ],
          "relation_mode": "general",
          "relation_titles": [
            {
              "id": "string",
              "name": "string"
            }
          ],
          "relation_user": {
            "id": "string",
            "name": "string"
          },
          "text": "string",
          "url": {
            "link": "string",
            "title": "string"
          }
        },
        "id": {
          "attr_id": "string"
        },
        "type": "system"
      }
    ],
    "dept_attrs": [
      {
        "attrs": [
          {
            "attr_meta": {
              "ctime": 0,
              "key": "string",
              "modify_permissions_level": "none",
              "mtime": 0,
              "name": "string",
              "options": [
                {
                  "key": "string",
                  "name": "string"
                }
              ],
              "order": 0,
              "scene_show": {
                "card_show": "all_hidden",
                "search_result_show": "all_hidden"
              },
              "show": "all_hidden",
              "show_mutable": true,
              "show_support_level": "global",
              "value_type": "text"
            },
            "attr_value": {
              "option": {
                "key": "string",
                "name": "string"
              },
              "relation_depts": [
                {
                  "abs_path": "string",
                  "dept_name": "string",
                  "dimension": {
                    "ctime": 0,
                    "desc": "string",
                    "id": "string",
                    "mtime": 0,
                    "name": "string"
                  },
                  "id": "string"
                }
              ],
              "relation_mode": "general",
              "relation_titles": [
                {
                  "id": "string",
                  "name": "string"
                }
              ],
              "relation_user": {
                "id": "string",
                "name": "string"
              },
              "text": "string",
              "url": {
                "link": "string",
                "title": "string"
              }
            },
            "id": {
              "attr_id": "string"
            },
            "type": "system"
          }
        ],
        "dept_id": "string"
      }
    ],
    "user_id": "string"
  },
  "code": 0,
  "msg": "string"
}