# Redirect set of generic emails to another Auth0 IdP

**URL:** <https://community.auth0.com/t/redirect-set-of-generic-emails-to-another-auth0-idp/125990>\
**Category:** Get Help\
**Tags:** connections, saml-enterprise-connection\
**Created:** [January 29, 2024, 10:32pm UTC](https://community.auth0.com/t/redirect-set-of-generic-emails-to-another-auth0-idp/125990 "2024-01-29T22:32:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joffrey\_sb](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joffrey_sb/32/54380_2.png) [@joffrey\_sb](https://community.auth0.com/u/joffrey_sb)\
**Post date:** [January 29, 2024, 10:32pm UTC](https://community.auth0.com/t/redirect-set-of-generic-emails-to-another-auth0-idp/125990/1 "2024-01-29T22:32:29Z")

</div>

We are a service provider using Auth0 looking to onboard a customer that also uses Auth0 for their corporate SSO needs.  
While we typically onboard new customers as IdPs and set up a SAML integration with email domain redirect, but this particular customer has an edge case and we’d love to find a solution to accommodate it.

This customer has corporate accounts on their domain (eg: [jane.doe@customer.com](mailto:jane.doe@customer.com)) but they work with a lot of temporary staff that have their own email addresses on gmail, yahoo etc…  
For the temp staff they create credentials on their Auth0 tenant so they can control their access and accounts centrally.

Question:  
We are looking for a way to not only match their corporate domain at login and redirect to their IdP for authentication, but also match on the list of emails they have as credentials in the same tenant.  
Is there a recommended way to do this?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [January 30, 2024, 12:30am UTC](https://community.auth0.com/t/redirect-set-of-generic-emails-to-another-auth0-idp/125990/3 "2024-01-30T00:30:40Z")

</div>

Hey there @joffrey_sb welcome to the community!

> [@joffrey\_sb](#):
>
> We are looking for a way to not only match their corporate domain at login and redirect to their IdP for authentication, but also match on the list of emails they have as credentials in the same tenant.  
> Is there a recommended way to do this?

Not entirely sure this suits your use case, but have you considered using an [Action](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/redirect-with-actions) at all to achieve this? In particular, you might use the [event.user.email](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/event-object) property to check against a list of emails and then redirect accordingly.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 13, 2024, 12:30am UTC](https://community.auth0.com/t/redirect-set-of-generic-emails-to-another-auth0-idp/125990/4 "2024-02-13T00:30:48Z")

</div>

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