Who is usually responsible for all required building permits?

Who is usually responsible for all required building permits?