Graham
08/14/2025, 6:35 AMAsk Inkeep
08/14/2025, 6:35 AMAsk Inkeep
08/14/2025, 6:35 AMemail_verified field that tracks whether an email address has been verified (1) (2) . This boolean field indicates whether the email address connected to an account identity is verified or not (1) .
According to the documentation, for social providers like "Login with Google" this verification is done automatically, otherwise the system will send the user a verification link in email .
When integrating with Permit.io, the email verification status is passed along with other identity information from your authentication provider (3) . After authentication completes, you can sync this information to Permit.io using syncUser() to ensure the authorization system has the most up-to-date user attributes .
The Ruby SDK model shows this structure (1) :
attr_accessor :email_verified
And the Go SDK similarly includes (2) :
// GetEmailVerified returns the EmailVerified field value
func (o *IdentityRead) GetEmailVerified() bool {
if o == nil {
var ret bool
return ret
}
return o.EmailVerified
}
To handle unverified emails in your authorization policies, you could include the email verification status as an attribute in your policy decisions, allowing you to restrict certain actions for users with unverified emails while still maintaining their authenticated session (3) .Ask Inkeep
08/14/2025, 6:35 AMGraham
08/14/2025, 6:37 AMAsk Inkeep
08/14/2025, 6:38 AMAsk Inkeep
08/14/2025, 6:38 AMsyncUser() to update Permit.io with the latest user attributes . The email verification status comes from your authentication provider - for social providers like "Login with Google" this is done automatically, otherwise users receive a verification link via email (2) .
For the Python SDK specifically, when approving invited users with unverified emails, you can use the following code (3) :
await permit.api.users.approve(
user_key="new_user",
email="<mailto:new-user@example.com|new-user@example.com>",
invite_code="ed32bc43e2194a80a5ef5e0339943b44"
)
The identity information includes an email_verified boolean field that tracks whether an email address has been verified (2) . You can pass this status as an attribute in permit.check() to dynamically include user details in access decisions (1) .
This allows you to create policies that restrict certain actions for users with unverified emails while maintaining their authenticated session .Ask Inkeep
08/14/2025, 6:38 AMAlon Boshi
08/14/2025, 7:31 AM