# Can I re-send email verification notification to linked account?

**URL:** <https://community.auth0.com/t/can-i-re-send-email-verification-notification-to-linked-account/193442>\
**Category:** Get Help\
**Tags:** users-by-email, management-api\
**Created:** [October 21, 2025, 8:27am UTC](https://community.auth0.com/t/can-i-re-send-email-verification-notification-to-linked-account/193442 "2025-10-21T08:27:45Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![onshout\_dev](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/onshout_dev/32/59849_2.png) [@onshout\_dev](https://community.auth0.com/u/onshout_dev)\
**Post date:** [October 21, 2025, 8:27am UTC](https://community.auth0.com/t/can-i-re-send-email-verification-notification-to-linked-account/193442/1 "2025-10-21T08:27:45Z")

</div>

Currently, I used facebook to login. but it doesnt return any email by default. So what i did was to just create username-password authentication and linked to facebook.but when im trying to resend email verification, it says user not found. So my question is, Can I really resend email to linked account?

BTW was able to receive initial email verification on that email after creating. but resend doesnt work:

```auto
try {

  const domain = await this.parameterService.get(Config.AUTH0_DOMAIN);

  const clientSecret = await this.parameterService.get(

    Config.AUTH0_CLIENT_SECRET

  );

  const clientId = await this.parameterService.get(Config.AUTH0_CLIENT_ID);

  const audience = await this.getAudience();

  const management = await this.getAuth0Management();

  const { data: user } = await management.users.get({ id: authId });

  const dbIdentity = user.identities?.find((i) => i.provider === 'auth0');

  // Get Management API token with update:users scope

  const tokenResponse = await fetch(\`https://${domain}/oauth/token\`, {

    method: 'POST',

    headers: { 'Content-Type': 'application/json' },

    body: JSON.stringify({

      client_id: clientId,

      client_secret: clientSecret,

      audience: audience,

      grant_type: 'client_credentials',

      scope: 'update:users',

    }),

  });

  if (!tokenResponse.ok) {

    throw new Error('Failed to get Auth0 management token');

  }

  const tokenData = await tokenResponse.json();

  const accessToken = tokenData.access_token;

  // Create email verification job

  const jobResponse = await fetch(\`${audience}jobs/verification-email\`, {

    method: 'POST',

    headers: {

      Authorization: \`Bearer ${accessToken}\`,

      'Content-Type': 'application/json',

      Accept: 'application/json',

    },

    body: JSON.stringify({

      user_id: \`${dbIdentity.provider}|${dbIdentity.user_id}\`,

      client_id: clientId,

    }),

  });

  if (!jobResponse.ok) {

    const errorData = await jobResponse.json();

    throw new Error(

      \`Auth0 API error: ${errorData.message || 'Unknown error'}\`

    );

  }

} catch (err) {

  throw new BadRequestException(

    \`Failed to resend email verification: ${(err as Error).message}\`

  );

}

```

the dbIdentity has this sample output:

`{`  
`profileData: { email: ‘test+601@example.com’, email_verified: false },`  
`connection: ‘Username-Password-Authentication’,`  
`user_id: ‘68f738efde12526d11f1f441’,`  
`provider: ‘auth0’,`  
`isSocial: false`  
`}`

---

<div class="post-metadata">

**Author:** ![onshout\_dev](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/onshout_dev/32/59849_2.png) [@onshout\_dev](https://community.auth0.com/u/onshout_dev)\
**Post date:** [October 21, 2025, 8:31am UTC](https://community.auth0.com/t/can-i-re-send-email-verification-notification-to-linked-account/193442/2 "2025-10-21T08:31:35Z")

</div>

Hi @teodor.andrei can you help me

---

<div class="post-metadata">

**Author:** ![teodor.andrei](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/teodor.andrei/32/75320_2.png) [@teodor.andrei](https://community.auth0.com/u/teodor.andrei)\
**Post date:** [October 21, 2025, 8:48am UTC](https://community.auth0.com/t/can-i-re-send-email-verification-notification-to-linked-account/193442/4 "2025-10-21T08:48:59Z")

</div>

Hi @onshout_dev!

Yes, you can absolutely resend a verification email to a linked account.

The “user not found” error you’re seeing is likely because the `user_id` being sent to the verification job is pointing to the _secondary_ (linked) identity, which is no longer a top-level user after being linked. You should send the `user_id` of the _primary_ account instead.

Can you please try this in your verification request?

```auto
user_id: authId

```

instead of user\_id: `${dbIdentity.provider}|${dbIdentity.user_id}`,

Let me know if it still doesn’t work, and I’ll look further into it.

Kind regards,  
Teodor.

---

<div class="post-metadata">

**Author:** ![onshout\_dev](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/onshout_dev/32/59849_2.png) [@onshout\_dev](https://community.auth0.com/u/onshout_dev)\
**Post date:** [October 21, 2025, 9:12am UTC](https://community.auth0.com/t/can-i-re-send-email-verification-notification-to-linked-account/193442/5 "2025-10-21T09:12:52Z")

</div>

but my original authId is the facebook. and my facebook doesnt have any emails, will it still work? @teodor.andrei

i dont think it will, it will just say no email on this profile something like that

---

<div class="post-metadata">

**Author:** ![teodor.andrei](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/teodor.andrei/32/75320_2.png) [@teodor.andrei](https://community.auth0.com/u/teodor.andrei)\
**Post date:** [October 21, 2025, 9:15am UTC](https://community.auth0.com/t/can-i-re-send-email-verification-notification-to-linked-account/193442/6 "2025-10-21T09:15:36Z")

</div>

Hi again @onshout_dev !

Now that they are linked, the user from facebook should have the email of the Username-Password connection, I believe.

Have you tried and it failed?

---

<div class="post-metadata">

**Author:** ![onshout\_dev](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/onshout_dev/32/59849_2.png) [@onshout\_dev](https://community.auth0.com/u/onshout_dev)\
**Post date:** [October 21, 2025, 9:18am UTC](https://community.auth0.com/t/can-i-re-send-email-verification-notification-to-linked-account/193442/7 "2025-10-21T09:18:23Z")

</div>

I just tried again and it failed , as expected on my previous chat, here’s the full error: `BadRequestException: Failed to resend email verification: Auth0 API error: The user does not have an email`

@teodor.andrei

---

<div class="post-metadata">

**Author:** ![teodor.andrei](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/teodor.andrei/32/75320_2.png) [@teodor.andrei](https://community.auth0.com/u/teodor.andrei)\
**Post date:** [October 21, 2025, 9:23am UTC](https://community.auth0.com/t/can-i-re-send-email-verification-notification-to-linked-account/193442/8 "2025-10-21T09:23:13Z")

</div>

Ah I see, @onshout_dev .

The primary profile doesn’t have the email at the root level, so I think you will have to add a request to PATCH the email to the root level email of the new profile resulting from linking before sending the verification.

---

<div class="post-metadata">

**Author:** ![onshout\_dev](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/onshout_dev/32/59849_2.png) [@onshout\_dev](https://community.auth0.com/u/onshout_dev)\
**Post date:** [October 21, 2025, 9:25am UTC](https://community.auth0.com/t/can-i-re-send-email-verification-notification-to-linked-account/193442/9 "2025-10-21T09:25:41Z")

</div>

Hi @teodor.andrei ,

I’ve already tried it yesterday

this only works if the primary identity is a DB (Username-Password-Authentication) account. If the primary is a social identity (e.g., Facebook), you CANNOT PATCH the email. Auth0 will reject the update because social identity emails are managed by the provider.

---

<div class="post-metadata">

**Author:** ![teodor.andrei](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/teodor.andrei/32/75320_2.png) [@teodor.andrei](https://community.auth0.com/u/teodor.andrei)\
**Post date:** [October 21, 2025, 9:50am UTC](https://community.auth0.com/t/can-i-re-send-email-verification-notification-to-linked-account/193442/10 "2025-10-21T09:50:36Z")

</div>

Ok then @onshout_dev, I’ll look more into it and get back to you as soon as possible.

Thank you for your patience!  
Teodor.

---

<div class="post-metadata">

**Author:** ![onshout\_dev](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/onshout_dev/32/59849_2.png) [@onshout\_dev](https://community.auth0.com/u/onshout_dev)\
**Post date:** [October 21, 2025, 10:14am UTC](https://community.auth0.com/t/can-i-re-send-email-verification-notification-to-linked-account/193442/11 "2025-10-21T10:14:36Z")

</div>

thanks, will wait for your feedback

---

<div class="post-metadata">

**Author:** ![teodor.andrei](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/teodor.andrei/32/75320_2.png) [@teodor.andrei](https://community.auth0.com/u/teodor.andrei)\
**Post date:** [October 21, 2025, 3:01pm UTC](https://community.auth0.com/t/can-i-re-send-email-verification-notification-to-linked-account/193442/12 "2025-10-21T15:01:12Z")

</div>

Hi again @onshout_dev !

Can you please give this a try?

```auto
const jobResponse = await fetch(\`${audience}jobs/verification-email\`, {
    method: 'POST',
    headers: {
      Authorization: \`Bearer ${accessToken}\`,
      'Content-Type': 'application/json',
      Accept: 'application/json',
    },
    body: JSON.stringify({
      user_id: authId,
      client_id: clientId,
      identity: {
        provider: dbIdentity.provider,
        user_id: dbIdentity.user_id
      }
    }),
  });

```

Kind regards,  
Teodor.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 4, 2025, 3:01pm UTC](https://community.auth0.com/t/can-i-re-send-email-verification-notification-to-linked-account/193442/13 "2025-11-04T15:01:14Z")

</div>

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