User's email issue

Hi all,

In our app, we try to link the user’s email to our app user’s email.

In some cases, our customers contact us about email issue, telling that, the email we use for their account is not the one they use for Asana.
Sometimes, they don’t even khow why we get that email, as it was linked to someone else in their organization.

After investigation, we found some interesting data, but, still no response, about, what is the “real”, official, email address of one user.

I personnally have an account, which is the result of 5 emails merged.
3 are “direct email+password” (asana sandbox), 1 is gmail auth, and another is google workspace auth.
And, I still can’t reproduce some cases that users have.

Source of email addresses:

  1. The user use “oauth” process to get its token + refresh. We get an email from that response.
    (from https://app.asana.com/-/oauth_token)
  2. Another email is available from API “/users/me”. Can be the same as oauth, or not.
  3. Also, every workspace the user is member of, can have different email.
    We think that it’s the “default communication email”, that the user can choose from the “notifications” tab, in Settings section.

Finally, when we are in the Asana UI, there’s a list all email addresses linked to the user’s account, in “settings / accounts” tab, Manage emails section.

I tried to logout / login using different method, on the same account, to see if the “oauth” and “users/me” response gives me different emails, but I always got the same.
I suppose that, somewhere, I have a “default” email address.
But, I don’t find any config section in asana where I can choose which one is it.

And, for some customers, why do they get different email from “/users/me”, VS “oauth” ?

Finally, is there a way to retrieve all emails listed in the settings/account section, from the API?

Thank you all.

3 Likes

@Jeff_Schneider, do you know who can help with that?

One new anomaly we just found:

When we access that forum, the email / avatar used, is the default email from the last workspace we visited, in “app.asana.com” !! :slight_smile:

We had to logout from forum, choose another workspace in asana UI, before logging again in the forum, to get the correct user!

Hey @Frederic_Malenfant,

Thanks for raising here. As you’re pointing out, the email scheme can be complicated. A lot of it is tied up in Asana’s long history and evolution. Power users of Asana (many emails / workspaces) tend to be the most impacted.

It’s hard to be brief and specific about both the challenges and the solutions here because of the complexity, but I can share a couple high level things:

  1. On the Settings > Notifications tab, there is a Preferred email which the user can / should set if this is the email they prefer. Unfortunately, it would not guarentee consistency in all the scenarios you’re outlining, but it is used in many places.
  2. Asana is working on simplifying the user email scheme and you should expect to see some announcements about that in the coming month or so. This will not completely eliminate the problem, but should dramatically decrease it.
  3. As a follow up to that, we may be making some changes to the way our API (especially OpenID implementation) surfaces user emails. Please let me know if you are interested in offering feedback on that.

More to come on this.

John

4 Likes

Hi @John_Baldo ,

We may be interrested at Bridge24 to offer feedback on that new implementation if possible.

Because, we have many users from all kind of accounts, and that occurs once or 2 every week.

Actually, I think we’ll just create a list of all e-mails we find for a user, instead of keeping only one.

And, all the emails we’ll find will be kept on that list.

  1. from oauth-token
  2. from “/users/me/?opt_fields=email”
  3. all from “/users/me/workspace_memberships/?opt_fields=user.email”

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.