Skip to content

飞书用户离职后,不能自动更新状态 #214

Closed
@straiway

Description

@straiway

您使用的版本? | Your usage version?

v0.5.10 2023-04-25

您使用的场景? | Your usage scenarios?

docker-compose部署 + 飞书

您做了什么操作? | What did you do?

同步飞书用户信息

您遇到了什么问题? | What are your problems?

已离职的账号没有从LDAP删除,也没有在Go-LDAP-Admin更新状态

您期望的结果是怎样的? | What is your expected outcome?

从LDAP删除已离职的账号,在Go-LDAP-Admin更新为已禁用

可能的修复方案

经查阅代码,同步飞书离职用户时,拿到的是union_id,但查询MySQL是否存在该用户时用的source_user_id字段,将该字段改为source_union_id应该可以修复。
代码位置:https://github.com/eryajf/go-ldap-admin/blob/3a3c2040cd60887a3b89adfcf360580c186612ea/logic/feishu_logic.go#LL110C33-L110C33

Metadata

Metadata

Assignees

No one assigned

    Labels

    InactivebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions