# Auth0 Actions not working with federated logins

**URL:** <https://community.auth0.com/t/auth0-actions-not-working-with-federated-logins/85674>\
**Category:** Get Help\
**Tags:** actions, auth0\
**Created:** [June 21, 2022, 11:50pm UTC](https://community.auth0.com/t/auth0-actions-not-working-with-federated-logins/85674 "2022-06-21T23:50:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shayaun](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shayaun/32/33687_2.png) [@shayaun](https://community.auth0.com/u/shayaun)\
**Post date:** [June 21, 2022, 11:50pm UTC](https://community.auth0.com/t/auth0-actions-not-working-with-federated-logins/85674/1 "2022-06-21T23:50:53Z")

</div>

Hello,

So I’m trying to use Google to sign in then I want to run Auth0 Actions on pre-user registration to restrict the domain of users that might be trying to authenticate via Google.

I’m not able to get actions to run at all on any point of the runtime.

I had my function body as simple as

```auto
api.access.deny("DENY ALL")

```

and even that wasn’t working. I double checked multiple times to see whether the latest version of this action was performed. Every time I ran through the login flow it ended up creating a new user, no problem, so there is no way the pre-registration action was being performed.

---

<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:** [June 22, 2022, 10:34pm UTC](https://community.auth0.com/t/auth0-actions-not-working-with-federated-logins/85674/4 "2022-06-22T22:34:28Z")

</div>

Hello @shayaun welcome to the community!

Unfortunately, only a Post Login Action will work with a federated user/social connection as discussed in the following post:

> [@PreRegistration Action is not triggered after a social login](https://community.auth0.com/t/preregistration-action-is-not-triggered-after-a-social-login/72720/4):
>
> Hi @yasin, Welcome to the Auth0 Community! First, I’d like to clarify that when using Actions, the following [Triggers](https://auth0.com/docs/actions/triggers) will not work with Social Logins: Pre-User Registration Post-User Registration Post-Change Password Send Phone Message The only Trigger that will work with SSO is the Post Login Action. Note that the Machine-to-Machine Action is irrelevant to user authentication. With that said, I recommend that you follow option 2 to accomplish your desired result. I have seen your new [Set…](https://community.auth0.com/t/set-user-metadata-is-not-working-inside-post-login-action/72744)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![shayaun](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shayaun/32/33687_2.png) [@shayaun](https://community.auth0.com/u/shayaun)\
**Post date:** [June 22, 2022, 11:04pm UTC](https://community.auth0.com/t/auth0-actions-not-working-with-federated-logins/85674/6 "2022-06-22T23:04:13Z")

</div>

Is the work to support Pre Login Actions with federated user/social connection scheduled or is that on a longer roadmap ?

---

<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:** [July 7, 2022, 11:04pm UTC](https://community.auth0.com/t/auth0-actions-not-working-with-federated-logins/85674/7 "2022-07-07T23:04:52Z")

</div>

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