Closed cgrice closed 7 months ago
Describe the bug When syncing using the groups method, any users with an apostrophe in their email cause the sync to fail.
groups
To Reproduce Steps to reproduce the behavior:
--group-match
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 - https://github.com/awslabs/ssosync/blob/065189469236d528c98b95c170f6f4130ae013db/internal/sync.go#L565-L566 - there's a note to move to GetUser(m.Email) which I think would solve the issue.
GetUser(m.Email)
I've managed to work around this by adding an email alias without an apostrophe, and ignoring the user in question with --ignore-users
--ignore-users
This should have been addressed v2.2.0, where we don't do per user queries, instead we have all users in a memory and pull the details from there.
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:
groups
mode, with a--group-match
set to match that groupExpected behavior The sync should work as expected, including the user with the apostrophe.
Additional context I believe the issue is caused by these lines - https://github.com/awslabs/ssosync/blob/065189469236d528c98b95c170f6f4130ae013db/internal/sync.go#L565-L566 - there's a note to move to
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