Thread

LP
Loïc Payol6:13 PMOpen in Slack
Hey Archestra team, I have a very niche issue for you guys:
We’re using Google as our IdP, and recently we changed our domain name. On Slack, we changed our email addresses, not all of them at this time though so some are on the former domain (still active), some on the new.
When sending a message to a Slack bot, users with the new domain name are considered new, since they are matched by their email address. And I can’t find ways to edit the email directly on the web interface (I could fiddle around an SQL console though).
I plan to manually update the emails directly on the database. Is there anything you might see problematic by doing so?
Oh and, logging in with Google directly on the Archestra Web UI works as expected, the email address is just not updated accordingly, and can’t be replaced either.

13 replies
X(
Xavier (archestra team)6:27 PMOpen in Slack
👀
Curious, but did you turn on the Update profile on sign-in setting in "settings > identity provider > [your identity provider]"?
LP
Loïc Payol6:29 PMOpen in Slack
Wasn’t aware of that setting. This should do the trick. I’ll just ask everyone to login again through the web UI then. Thanks! 🙏
LP
Loïc Payol6:32 PMOpen in Slack
Well, I just tested that: checked “Update profile on sign-in”, and added both my former and current domain name. It created a new user :c
X(
Xavier (archestra team)7:02 PMOpen in Slack
Hmm, that is indeed a bit odd. We'll need to take a deeper look there.
off the top of my head, I don't recall a way to edit the email directly on the interface.
You're gonna attempt to fiddle around SQL to edit which email though?
LP
Loïc Payol7:03 PMOpen in Slack
That's what I did so far. It works and I have less than 30 users so it's perfectly manageable by hand
X(
Xavier (archestra team)7:05 PMOpen in Slack
kk. well if that works then all good.
Having said that, we'll check out that whole update profile on sign-in , feels like the behaviour is a bit off
LP
Loïc Payol7:12 PMOpen in Slack
Alright, I'd be happy to assist if you need additional input
🫡1
LP
Loïc Payol7:12 PMOpen in Slack
I'm still in my domain name migration migraine so happy to help while my memory is fresh about it
J(
joey (archestra team)12:22 AMOpen in Slack
@user question - if you are poking around SQL, can you share these details with me (if you haven’t yet cleaned up the old users - can obfuscate the e-mails of course):
from account a join "user" u on u.id = a.user_id
where u.email in ('<old>', '<new>')```
I _think_ what could be happening here is the `sub` (unique id from your Idp, Google) is different between these users

did you recreate Google accounts for folks on the new domain or “rename” them?
J(
joey (archestra team)12:23 AMOpen in Slack
if the sub claim in the Google SSO tokens were the same I think it should update the :archestra: user’s e-mail to the new one in the last token’s e-mail claim
LP
Loïc Payol11:42 AMOpen in Slack
I just cleaned up the old users, but I can definitely give you a repro, checking if the sub is the same or not after I change my primary Google email address. Coming right in
❤️1
LP
Loïc Payol12:53 PMOpen in Slack
Okay, well I can’t reproduce the bug anymore with my own account, maybe because of the cleanup. But I have two accounts for my email, a credential provider and a Google provider.
J(
joey (archestra team)12:53 PMOpen in Slack
But I have two accounts for my email, a credential provider and a Google provider.
this should be okay in fact (this account table just stores data about given login methods for a user (users can have > 1))
the credential one just means e-mail/password login (if you currently still use that, or used it at one point in the pass).