Embed hook - userdata

Hi there,

Is there any user data exposed to the embed event?
I would like to run certain scripts based on the user itself.
https://directus.io/docs/guides/extensions/api-extensions/hooks#embed

To my knowledge, the embed hook does not expose any user data.

If you need user data in your hook, you’d want to use a different hook type that runs in an authenticated context, like:

  • Action hooks - triggered by user actions in the app
  • Filter hooks - run during API requests with user context
  • Event hooks - triggered by system events with user information

What specific user data are you trying to access? That might help determine the best approach for your use case.