That sounds like any number of films, YA novels, podcasts, etc. that have tackled this kind of idea in a post- Harry Potter world. (Right off the top of our head, and pulling only from Disney itself, ...