When using identifier-first login, "event.organization" is null in login action


I’m using identifier-first login, which, to my knowledge, requires selecting “individuals for personal use” or “both” even if the only login options are through organizations. If “team members of organizations” is selected, identifier-first login disappears in favor of “enter your organization name.” Identifier-first login is a very nice UX flow, so its important to me to keep that.

So, now when I use an action to sync my user + set their default organization in my application, event.organization returns null. This is what I am trying to fix.

Another possible problem is that “membership on authentication” is enabled in my organization’s google workspace connection, but “members” remain unpopulated. When I manually add the users to the organization members, event.organization is still null on subsequent logins.

Any pointers? Thank you!