Files
colleague-skill/tools
titanwings ce30311a72 fix: replace broken /search/v1/user with department traversal + batch_get_id
The old find_user() used /search/v1/user which requires user_access_token,
but the code only has tenant_access_token, causing error 99991663 every time.

New strategy:
1. Email/phone → /contact/v3/users/batch_get_id (fastest, proven working)
2. Name → department traversal + find_by_department (needs contact:department.base:readonly)
3. Both fail → clear error message with suggestions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 19:10:48 +08:00
..