How to add global policies before users-permissions' permissions policy?

System Information
  • Strapi v3.6.10
  • MacOS Ventura
  • MySQL v8
  • Node v14.20.0
  • NPM v6.14.17
  • Yarn 1.22.15

How do I add policies before users-permissions’ permissions policy?

Best regards

What is your goal?

I wanted to add a custom authentication layer, so I think adding a middleware/policy that runs before the default permissions policy will be a clean approach (instead of writing all necessary logics to permissions policy).