Skip to content

fix: use Feishu global user API for org sync to bypass department hie…#295

Open
bigbearcool wants to merge 1 commit intodataelement:mainfrom
bigbearcool:feishu-global-user-sync
Open

fix: use Feishu global user API for org sync to bypass department hie…#295
bigbearcool wants to merge 1 commit intodataelement:mainfrom
bigbearcool:feishu-global-user-sync

Conversation

@bigbearcool
Copy link
Copy Markdown

…rarchy limits

  • Override sync_org_structure() to use contact/v3/users (global list) API
  • Add _fetch_all_users() method using global user list endpoint
  • Replace per-department fetch_users with global user fetch
  • Works regardless of department hierarchy position, fixes root-dept access issues
  • Fixes: Feishu API returns no-dept-authority error when fetching root department users

Summary

Checklist

  • Tested locally
  • No unrelated changes included

…rarchy limits

- Override sync_org_structure() to use contact/v3/users (global list) API
- Add _fetch_all_users() method using global user list endpoint
- Replace per-department fetch_users with global user fetch
- Works regardless of department hierarchy position, fixes root-dept access issues
- Fixes: Feishu API returns no-dept-authority error when fetching root department users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant