How to trigger creation of other resources upon creation of one?

You can add a change with an after action hook to your user resource:

changes do
  change after_action(fn changeset, result, _context -> 
     # create personal organization here
  end), on: [:create] # only do this when a user is created.
end
1 Like