GenAuth DocsDocuments
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Old version
  • Single Page Web Application

  • Mobile and Client Applications

  • Standard Web Application

    • Java

    • Node.js

    • Python

      • 安装使用
      • 用户认证模块
      • 管理模块

        • 用户管理

        • 分组管理

        • 角色管理

        • 组织机构管理

          • 获取顶层组织机构列表
          • 创建顶层组织机构
          • 修改顶层组织机构
          • 删除组织机构
          • 搜索顶层组织机构列表
          • 获取部门信息
          • 创建部门
          • 修改部门
          • 删除部门
          • 搜索部门
          • 获取子部门列表
          • 获取部门成员列表
          • 获取部门直属成员 ID 列表
          • 搜索部门下的成员
          • 部门下添加成员
          • 部门下删除成员
          • 获取父部门信息
          • 判断用户是否在某个部门下
        • 访问控制管理

        • 外部身份源管理

        • 自定义字段管理

  • Framework Integration

  • Others

  1. Development Integration
  2. /
  3. Standard Web Application
  4. /
  5. Python
  6. /
  7. 管理模块

  8. /
  9. 组织机构管理

  10. /
  11. 部门下删除成员

¶ 部门下删除成员

Update time: 2025-07-23 07:34:21
Edit

通过部门 ID、组织 code,删除部门下成员。

¶ 请求参数

名称类型必填默认值描述示例值
userIdsarray[]是-用户 ID 列表。["623c20b2a062aaaaf41b17da"]
organizationCodestring是-组织 code。steamory
departmentIdstring是-部门系统 ID(为 GenAuth 系统自动生成,不可修改)。60b49eb83fd80adb96f26e68
departmentIdTypestring否department_id此次调用中使用的部门 ID 的类型。 枚举值:department_id,open_department_iddepartment_id

¶ 示例代码

from authing import ManagementClient

management_client = ManagementClient(
    access_key_id="GEN_AUTH_USERPOOL_ID",
    access_key_secret="GEN_AUTH_USERPOOL_SECRET",
)

data = management_client.remove_department_members(
     department_id: "60b49eb83fd80adb96f26e68",
     organization_code: "steamory",
     department_id_type: "department_id",
     user_ids: ["623c20b2a062aaaaf41b17da"],

)

¶ 请求响应

类型: IsSuccessRespDto

名称类型描述
statusCodenumber业务状态码,可以通过此状态码判断操作是否成功,200 表示成功。
messagestring描述信息
apiCodenumber细分错误码,可通过此错误码得到具体的错误类型。
dataIsSuccessDto操作是否成功

示例结果:

{
  "statusCode": 200,
  "message": "操作成功",
  "apiCode": 20001,
  "data": {
    "success": true
  }
}

¶ 数据结构

¶ IsSuccessDto

名称类型必填描述
successboolean是操作是否成功。 示例值: true
Previous article: 部门下添加成员 Next article: 获取父部门信息
  • 请求参数
  • 示例代码
  • 请求响应
  • 数据结构

User identity management

Integrated third-party login
Customized authentication process

Enterprise internal management

Single sign-on
Multi-factor authentication
Permission management

Developer

Development Documentation
GitHub (opens new window)

Company

official@genauth.ai
16th Floor, Building B, Beichen Century Center, Chaoyang District, Beijing (Total)
Room 406, 4th Floor, Block B, No. 200, Tianfu Fifth Street, High-tech Zone, Chengdu (Branch)

© Beijing Steamory Technology Co., Ltd.