Hey all! I'm having an issue now with dotted email...
# ask-a-descoper
s
Hey all! I'm having an issue now with dotted email addresses. One of my users is signed up in my system as an email address without any periods (exampleuser@customdomain.com), but he's trying to sign in with a dotted variant (example.user@customdomain.com). On Gmail + other google hosted domains, dotted emails are collapsed together, does that happen on descope? as a side question - how does descope handle merging users when a plus address is invloved (example.user+arbitrary-thing-that-gets-ignored@customdomain.com)? Does it strip the + part for merging?
s
first on the side question , + are not stripped by default, so no merging on those Would you like it stripped ?
on the other point, we don't collapse
s
ah, the dotted emails are more important to me; is there a way that I can add the dotted variant myself?
s
you can update the user in the users page
s
I had added the email using the non-dotted email as the login-id; will updating the email work?
nope, it did not, had to add him as another user
s
which sdk are you using?
s
i'm making the calls manually based off of the OpenAPI specs
Copy code
"loginId": "<mailto:example.user@customdomain.com|example.user@customdomain.com>",
    "email": "<mailto:example.user@customdomain.com|example.user@customdomain.com>",
    "verified": true
make the loginId and email the same
this should do the trick
@shy-church-72972 did you manage ?
s
ya, i added a new user with the dot in the loginId
is there a way i can merge the 2?
s
You used the update or create call ?
s
I added the new user in the UI
b
@shy-church-72972 - if you want to replace the login ID of a user (first.name@company.com -> firstname@company.com) - you can do that with the SDK call Meir has suggested. If you want to add a Login ID to the user (have both first.name@ and firstname@ logging in to the same account) - we are now adding an ability to update the login ID as part of the Management SDK that should be there in the next week. Happy to jump on a quck zoom to discuss the exact use case and see how we can support it