Send verification email to secondary identity

In my tenant I’ve created a user “auth0|5f3…c”, and I’ve linked a secondary identity (“auth0|5f5…d”) to it.

I’m trying to request an email verification on the 2ndary identity, using the new identity field in the API.

POST /api/v2/jobs/verification-email 
{ "user_id": "auth0|5f3…c",
  "identity": { "provider": "auth0", "user_id": "5f5…d" }
}

When I run the request above, I get a 400 error:

{ "statusCode": 400,
"error": "Bad Request",
"message": "The identity field is not currently enabled for this tenant",
"errorCode": "operation_not_supported" }

Am I doing something wrong? I don’t see anything in the documentation about the “identity” field not being supported for certain tenants.

Hey @mamacdon! Let’s see…

At this time we only support email verification for the primary identity of users belonging to the Auth0 IDP. The error message seems misleading so I’ll double check internally whether it should be updated.

1 Like

Any update regarding this?

Error: The identity field is not currently enabled for this tenant