企业微信(WeCom)-办公 icon

企业微信(WeCom)-办公

企业微信办公功能 - 文档、微盘、邮件、日程、会议、直播、打卡、审批、汇报、人事、会议室、紧急通知、公费电话

Actions259

邮件 → [高级账号管理] 禁用/启用邮箱账号

AI-generated

Summary

Enable or disable one WeCom email account by account type and identifier. Choose whether to target a member mailbox or a public mailbox, then set the action.

Inputs

  • 操作 (operation_type) (required) — Choose 启用 (1) or 禁用 (2); defaults to 启用.
  • 账号类型 (mailboxTargetType) (required) — Choose 成员邮箱 (user) or 公共邮箱 (public); each request operates on only one account type.
  • 成员UserID (userid) (required) — The member's UserID; shown when targeting a member mailbox.
  • 公共邮箱ID (publicemail_id) (required) — The public mailbox ID (minimum 1); shown when targeting a public mailbox.

Output shape

A single API response item.

The operation updates the selected mailbox account's enabled or disabled status. The supplied source pack shows the mail execution entry points only at signature level, so the specific response fields are not available.

Examples

Example 1: Disable a member mailbox

Set 操作 to 禁用, 账号类型 to 成员邮箱, and provide the member's UserID.

Links

Discussion