GetUser custom database connection gets passed an empty context when updating user

Good day!

We are setting up automatic migration, but we ran into an issue. Whenever we attempt to update the user, either through the dashboard, or through the PATCH endpoint, the GetUser script in our database configuration triggers, but with an empty context.

We require the organization id to be passed to know in our backend where to look for this user.

Is there a way we can get the organization context here, or can we maybe update the user without triggering the GetUser script?

I found a workaround. As we use one database per organization, and our users can not belong to multiple organizations, I can simply hardcode the organization id in there.

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