Skip to content

Filter out non-user mailboxes and guests in Chat Migration list users API calls - #177

Merged
NityamPareek merged 1 commit into
mainfrom
filter-chat-users-graph
Sep 18, 2026
Merged

NityamPareek merged 1 commit into
mainfrom
filter-chat-users-graph

Conversation

@NityamPareek

Copy link
Copy Markdown
Collaborator

Summary

  • Updates Microsoft Graph GET /users calls in chat/scanner.py (fetch_all_users_graph) and ui/chats_ui.py (_get_all_users_graph) to filter out Room, Equipment, Shared, Bookings, and System mailboxes as well as B2B Guest accounts.
  • Adds =userType eq 'Member' and assignedPlans/any(c:c/service eq 'TeamspaceAPI' and c/capabilityStatus eq 'Enabled'), =true, and ConsistencyLevel: eventual header so only internal users with an enabled Teams service plan are enumerated.
  • Adds unit test test_fetch_all_users_graph_filters_non_user_mailboxes in tests/chat/scanner_test.py.
@NityamPareek
NityamPareek merged commit baa437e into main Sep 18, 2026
10 checks passed
@NityamPareek
NityamPareek deleted the filter-chat-users-graph branch September 18, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant