Auth0 Home Blog Docs

Auto email_verified when social or saml connection

Hi
I want to use the link account rule as is - problem is that one of the conditions are that the email was verified , but for saml connection users emails are never verified.
yes i know i can change the rule - but i thought it make more sense to say
hey - someone already verified them , this is why i have a trust with them

so how can i change user profile upon login to be email_verified only for saml connections or social
thanks
Shlomi

Hi @shlomiken,

You should be able to accomplish this in a rule using the context.connection object.

You can check the connection name or connection ID and then you can update the user.email_verified object.

Let me know if that does it!

Thanks,
Dan

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