You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

WSO2 API Manager 4.2.0用户注册待审批任务如何通知管理员?

WSO2 API Manager 4.2.0 管理员审批注册的通知配置问题

核心需求实现

你已配置管理员审批的用户自注册工作流,要让管理员无需登录控制台知晓待审批任务,WSO2 API-M支持通过通知管理框架实现自动邮件通知,无需依赖完整Identity Server,Resident Key Manager场景下完全可配置。

邮件发送错误修复

你遇到的{org.wso2.carbon.identity.notification.mgt.email.EmailSendingModule} - Error while sending email notification to address myemailaddress@gmail.com on event userOperation org.apache.axis2.AxisFault: The system cannot infer the transport information from the mailto:myemailaddress@gmail.com URL错误,和是否使用Resident Key Manager无关,根源是SMTP传输配置缺失,修复步骤如下:

  1. 打开API-M安装目录下的repository/conf/deployment.toml文件
  2. 补充SMTP邮件发送配置,以Gmail为例:
[output_adapter.email]
from_address = "你的发件邮箱@domain.com"
username = "你的发件邮箱@domain.com"
password = "你的邮箱应用专用密码"
hostname = "smtp.gmail.com"
port = 587
enable_start_tls = true
enable_authentication = true
  1. 确保通知管理框架针对用户注册事件的配置正确,添加以下内容到deployment.toml:
[identity.notification_mgt]
enable_notification_mgt = true

[[identity.notification_mgt.notification]]
event_name = "POST_USER_ADD"
notification_mediums = ["EMAIL"]
template_type = "TEXT"
  1. 重启API-M服务后重新测试用户注册流程

注意事项

  • 若使用Gmail,需先开启两步验证,再生成应用专用密码,不能直接使用邮箱登录密码
  • 可自定义通知邮件内容,修改repository/resources/identity/email-templates目录下的对应模板文件即可

内容的提问来源于stack exchange,提问作者RTodd

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.16 02:32:17