Fetch user by id or email before trying to create
On src/services/impl/users/get-or-create-user.ts:37 we need to try and retrieve the returned user from the db (by email OR upn) before trying to create.
Usecase
- User registered with upn eg crdeoliv
- User is added by external email carina..@gmail.com - we try to retrieve by email from auth with success and get a user {upn, official email}
- We try to create and fail because user already exists
Edited by Carina Antunes