# Rule to bypass scope

**URL:** <https://community.auth0.com/t/rule-to-bypass-scope/58718>\
**Category:** Get Help\
**Created:** [March 1, 2021, 9:02pm UTC](https://community.auth0.com/t/rule-to-bypass-scope/58718 "2021-03-01T21:02:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gary1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gary1/32/13308_2.png) [@gary1](https://community.auth0.com/u/gary1)\
**Post date:** [March 1, 2021, 9:02pm UTC](https://community.auth0.com/t/rule-to-bypass-scope/58718/1 "2021-03-01T21:02:34Z")

</div>

I am trying to temporarily disable MFA for users if they have not already setup MFA.

I have been able to create a rule to bypass MFA if MFA has not been setup for a user but if MFA has already been set, it will continue to operate with full MFA.

I would like to find a way to temporarily bypass claims / scopes that are being requested as well. We currently get the window where the user has to Authorize access to a scope. It doesn’t really make sense for where we are since these are all within our application control already.

I have tried adding the authorization in the API but it doesn’t seem to bypass the requirement to grant access to the scope.

Is there a rule that I could add the would simply bypass this request but automatically grant access to the requested permission?

Thanks

---

<div class="post-metadata">

**Author:** ![ricardo.batista](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ricardo.batista/32/7711_2.png) [@ricardo.batista](https://community.auth0.com/u/ricardo.batista)\
**Post date:** [March 2, 2021, 12:35pm UTC](https://community.auth0.com/t/rule-to-bypass-scope/58718/2 "2021-03-02T12:35:59Z")

</div>

Hi @gary1

If all you want to do is bypass the consent screen ( [User Consent and Third-Party Applications](https://auth0.com/docs/authorization/user-consent-and-third-party-applications) ) , you can do it by adding an API, enabling the **Allow Skipping User Consent** toggle ( [API Settings](https://auth0.com/docs/get-started/dashboard/api-settings) ) and using it’s identifier as the audience in your authentication request.

You can also read more about it here:  
[https://auth0.com/docs/authorization/user-consent-and-third-party-applications#skip-consent-for-first-party-applications](https://auth0.com/docs/authorization/user-consent-and-third-party-applications#skip-consent-for-first-party-applications)

> [@How do I skip the consent page for my API Authorization flow?](https://community.auth0.com/t/how-do-i-skip-the-consent-page-for-my-api-authorization-flow/6035):
>
> I understand that the consent page is useful for a 3rd party client accessing an API I have configured, but I’m now developing a 1st party client and I still always see the consent page like this: ![Consent screen][1] How can I disable this screen for my first party client?

---

<div class="post-metadata">

**Author:** ![gary1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gary1/32/13308_2.png) [@gary1](https://community.auth0.com/u/gary1)\
**Post date:** [March 2, 2021, 4:01pm UTC](https://community.auth0.com/t/rule-to-bypass-scope/58718/3 "2021-03-02T16:01:28Z")

</div>

@ricardo.batista - Thank you. I was doing this but the problem was I was testing using localhost which your link says won’t work. I changed to non-localhost environment and worked as I was expected.

Thanks - close ticket

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [March 3, 2021, 1:24pm UTC](https://community.auth0.com/t/rule-to-bypass-scope/58718/4 "2021-03-03T13:24:21Z")

</div>

Perfect! Glad to hear that!

---

<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:** [March 18, 2021, 1:24pm UTC](https://community.auth0.com/t/rule-to-bypass-scope/58718/5 "2021-03-18T13:24:40Z")

</div>

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