Overview
This article explains how to find the corresponding log entry for the event that shows more information about when email_verified
set from TRUE to FALSE and whether Auth0 will ever update that value.
Applies To
- User Profile
- email_verified
Solution
Auth0 will not update the email_verified
value of a user on a customer’s behalf.
There are several operations that set email_verified from FALSE to TRUE. The most common operation is calling the Management API Update a User endpoint with the body of:
{"email_verified": false}
If a user is updated with {"email_verified": false}
using an Update a User endpoint, the following log is recorded.
- Type: API Operation (sapi)
Description: Update a User
To filter for this log:
-
Go to Dashboard > Monitoring > Logs
-
Type type: sapi AND description: “Update a User” in the search field, and press Enter.
-
Open one of the logs
-
Check the “Raw” tab. If you find “details”: “body”: {“email_verified”: false}, this is the log showing email_verified was set to false using Management API.
Example:
"details": {
"request": {
"method": "patch",
"path": "/api/v2/users/auth0%xxxxx",
"query": {},
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36",
"body": {
"email_verified": false
},
...
- Repeat steps 1 - 4 until you find the target log.
Searching the target log in the dashboard may be cumbersome, so it is recommended to retrieve the logs using the Management API endpoint and searching the target log. See Search log events for more details.