Dependent status for students and new tax law

My feeling is that 529 distributions used for the benefit of a student that come from a 529 account that is not owned by the student must be considered support provided by someone other than the student (it doesn’t matter if the distribution is made to the student or directly to the school). On the other hand, if the 529 account is owned by the student, whether as a regular 529 account if the student is not a minor or as a custodial 529 account (UTMA/UGMA) if the student is a minor, this would be considered the student providing his/her own support.