Hook that ignores dashboard actions

Trying to implement a Pre User Registration hook that whitelists users, however, I would like to still allow creation from the dashboard for non whitelisted domains. Is there any way to do this? I’ve tried looking at various properties of the context, but many of the properties that have values in the hook runner are undefined when creating the user from the dashboard (webtask.headers.referer, webtask.headers.origin) etc. Wondering what I can look at to determine this.

Hey there!

As this topic is related to Rules - Hooks - Actions and Rules & Hooks are being deprecated soon I’m excited to let you know about our next Ask me Anything session in the Forum on Thursday, January 18 with the Rules, Hooks and Actions team on Rules & Hooks and why Actions matter! Submit your questions in the thread above and our esteemed product experts will provide written answers on January 18. Find out more about Rules & Hooks and why Actions matter! Can’t wait to see you there!

Learn more here!