Skip to content

email_verified field type validation fails for some SAML users #789

@colinlowther

Description

@colinlowther

Checklist

  • I have looked into the Readme and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

Hello,

For SAML connections the work around to set the email verified to become true is to set it to a non-empty string (see https://community.auth0.com/t/set-email-verified-to-true-for-saml-based-enterprise-users/62650). The new library with type checking doesn't like this and throws a type exception when pulling data that includes email_verified

Reproduction

  1. Create a user in auth0 with email_verified set to a non-empty string
  2. In auth0 this is treated as "true"
  3. Pull this client info using the library

Additional context

No response

auth0-python version

5.1.0

Python version

3.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions