Sync fails for user with apostrophe in email address
cgrice opened this issue · comments
Chris Grice commented
Describe the bug
When syncing using the groups
method, any users with an apostrophe in their email cause the sync to fail.
To Reproduce
Steps to reproduce the behavior:
- Find a group with a user who has an email containing an apostrophe
- Run a sync using
groups
mode, with a--group-match
set to match that group - The sync fails with an "Error 400: Invalid Input: query, invalid" error
Expected behavior
The sync should work as expected, including the user with the apostrophe.
Additional context
I believe the issue is caused by these lines -
Lines 565 to 566 in 0651894
GetUser(m.Email)
which I think would solve the issue.
I've managed to work around this by adding an email alias without an apostrophe, and ignoring the user in question with --ignore-users